Nvim: autosave all buffers when focus of window is lost

This commit is contained in:
pr0c3550r 2023-08-05 22:53:54 +02:00
parent d776892699
commit 431891e497

View file

@ -7,3 +7,7 @@ vim.api.nvim_create_autocmd("Filetype", {
command = "setlocal formatoptions-=c formatoptions-=r formatoptions-=o"
})
vim.api.nvim_create_autocmd("FocusLost", {
pattern = "*",
command = ":wa"
})