Update snippets
This commit is contained in:
@@ -26,6 +26,14 @@ vim.api.nvim_create_autocmd('InsertLeave', {
|
||||
command = 'silent! wa', -- Save all files when leaving insert mode
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd('SwapExists', {
|
||||
desc = 'Always choose to delete the swap file, files are saved automatically',
|
||||
group = vim.api.nvim_create_augroup('NoSwaps', { clear = true }),
|
||||
callback = function(args)
|
||||
vim.cmd("let v:swapchoice = 'd'")
|
||||
end,
|
||||
})
|
||||
|
||||
-- vim.api.nvim_create_autocmd('TextChanged', {
|
||||
-- group = autosave_group,
|
||||
-- pattern = '*',
|
||||
|
||||
Reference in New Issue
Block a user