diff options
Diffstat (limited to 'nvim')
-rw-r--r-- | nvim/.config/nvim/lua/tobyvin/plugins/presence.lua | 4 |
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 |