Thu, 16 Mar 2023 12:30:42 -0500
Fix stopinsert
.config/nvim/lua/config/autocmds.lua | file | annotate | diff | comparison | revisions |
--- a/.config/nvim/lua/config/autocmds.lua +++ b/.config/nvim/lua/config/autocmds.lua @@ -15,7 +15,7 @@ autocmd(g, "FocusGained", "*", cmd.check -- Stopinsert on leave, or autowriteall doesn't work. autocmd(g, { "WinLeave", "FocusLost" }, "*", function() if fn.pumvisible() == 0 then - fn.stopinsert() + cmd.stopinsert() end cmd.wa() end)