Skip to content

Commit

Permalink
fix(autocmds): clear after debounce
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts committed Mar 24, 2024
1 parent 28f433c commit c2113bb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lua/no-neck-pain/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,11 @@ function NoNeckPain.setup(opts)

NoNeckPain.enable()

if _G.NoNeckPain.state ~= nil then
vim.api.nvim_del_autocmd(p.id)
end
A.debounce("enableOnVimEnter", function()
if _G.NoNeckPain.state ~= nil then
vim.api.nvim_del_autocmd(p.id)
end
end, 20)
end)
end,
group = "NoNeckPainAutocmd",
Expand Down

0 comments on commit c2113bb

Please sign in to comment.