Nvim: autosave all buffers when focus of window is lost
This commit is contained in:
parent
d776892699
commit
431891e497
1 changed files with 4 additions and 0 deletions
|
@ -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"
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue