AutoYADM commit: 2025-01-21 18:15:06

This commit is contained in:
Daniel Fichtinger 2025-01-21 18:15:06 -05:00
parent f437112722
commit 9505e40fce

View file

@ -4,3 +4,9 @@ vim.api.nvim_create_autocmd({ "InsertLeave", "TextChanged" }, {
buffer = 0,
command = "silent! write",
})
vim.api.nvim_create_autocmd("BufWritePre", {
pattern = "*",
callback = function()
vim.cmd("%s/\\s\\+$//e")
end,
})