.config/nvim/lua/config/autocmds.lua

changeset 1129
1bd6edeaf6ae
parent 1088
c221227cbba5
child 1157
a237720efee9
--- a/.config/nvim/lua/config/autocmds.lua
+++ b/.config/nvim/lua/config/autocmds.lua
@@ -17,7 +17,7 @@ autocmd(g, { "WinLeave", "FocusLost" }, 
   if fn.pumvisible() == 0 then
     cmd.stopinsert()
   end
-  cmd.wa()
+  pcall(cmd.wa)
 end)
 
 -- >> auto mkpath on write

mercurial