Skip to content

Commit

Permalink
Change ModeChanged autocmd to InsertEnter
Browse files Browse the repository at this point in the history
ModeChanged '[^i]*:i' still triggers too often, when not required.
Tested with InsertEnter and it works as expected, but I do remember that
I have choosen ModeChanged in first place because InsertEnter wasn't
triggered after opening neovim and first entering insert mode, but now
it works.
  • Loading branch information
monkoose committed Sep 9, 2024
1 parent ad06fb7 commit 4704bcf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/neocodeium/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ local function enable_autocmds()
end,
})

create_autocmd("ModeChanged", {
pattern = "[^i]*:i",
create_autocmd("InsertEnter", {
callback = function()
completer:initiate()
end,
Expand Down

0 comments on commit 4704bcf

Please sign in to comment.