Force saving
This commit is contained in:
+2
-2
@@ -21,10 +21,10 @@ vim.api.nvim_create_autocmd('FocusLost', {
|
||||
nested = true, -- Allow other autocommands to run after this one
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd('InsertLeave', {
|
||||
vim.api.nvim_create_autocmd('BufLeave', {
|
||||
group = autosave_group,
|
||||
pattern = '*',
|
||||
command = 'silent! wa', -- Save all files when leaving insert mode
|
||||
command = 'silent! wa', -- Save all files when switching buffers
|
||||
nested = true, -- Allow other autocommands to run after this one
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user