Update snippets

This commit is contained in:
Chris
2025-08-26 18:23:14 +01:00
parent ca6e7089fa
commit 2b1d2ed5be
15 changed files with 193 additions and 137 deletions

View File

@@ -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 = '*',