1
0
mirror of https://github.com/jiriks74/presence.nvim synced 2024-11-23 20:37:50 +01:00

Add runtime path log

This commit is contained in:
Andrew Kwon 2021-04-29 22:58:37 -07:00
parent 2a678f03e8
commit 8251620eb6

@ -95,7 +95,7 @@ function Presence:setup(options)
self:set_option("debounce_timeout", 15)
local discord_socket = self:get_discord_socket()
if not discord_socket then
if discord_socket then
self.log:error("Failed to get Discord IPC socket")
end
@ -278,6 +278,7 @@ function Presence:get_discord_socket()
local var = env_vars[i]
local path = vim.loop.os_getenv(var)
if path then
self.log:debug(string.format("Using runtime path: %s", path))
return path:match("/$") and path..sock_name or path.."/"..sock_name
end
end