Tue, 19 Sep 2023 17:12:00 -0500
fix error when unnamed buffers can't be written
--- 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