summaryrefslogtreecommitdiffstatshomepage
path: root/nvim/.config
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2023-01-07 19:02:54 -0600
committerToby Vincent <tobyv13@gmail.com>2023-01-07 19:02:54 -0600
commiteb8ba718e8c9671634e9a7c4565eeb259a4e3935 (patch)
treeeef9d03a65366719f9ebb8d02d39d7d1bfe2821a /nvim/.config
parent4881c013808c1d0dc080b7b6a5808b839a6c7910 (diff)
fix(nvim): fix bug in presence timeout function
Diffstat (limited to 'nvim/.config')
-rw-r--r--nvim/.config/nvim/lua/tobyvin/plugins/presence.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/nvim/.config/nvim/lua/tobyvin/plugins/presence.lua b/nvim/.config/nvim/lua/tobyvin/plugins/presence.lua
index 1d34572..d54dd91 100644
--- a/nvim/.config/nvim/lua/tobyvin/plugins/presence.lua
+++ b/nvim/.config/nvim/lua/tobyvin/plugins/presence.lua
@@ -21,7 +21,9 @@ function M.config()
end
function Presence:cancel_idle_timer()
- vim.fn.timer_stop(self.idle_timer)
+ if self.idle_timer then
+ vim.fn.timer_stop(self.idle_timer)
+ end
self.idle_timer = nil
end