diff --git a/.config/nvim/lua/config/autocmds.lua b/.config/nvim/lua/config/autocmds.lua index fe749edd..936ff5c6 100644 --- a/.config/nvim/lua/config/autocmds.lua +++ b/.config/nvim/lua/config/autocmds.lua @@ -59,10 +59,9 @@ vim.api.nvim_create_autocmd({ "FileType" }, { callback = function() vim.opt_local.breakindent = true -- We want markdown files to autosave - -- vim.opt_local.autowrite = true vim.api.nvim_create_autocmd({ "InsertLeave", "TextChanged" }, { buffer = 0, - command = "write", + command = "silent! write", }) vim.opt_local.wrap = true vim.opt_local.spell = true