AutoYADM commit: 2025-01-21 18:15:06
This commit is contained in:
parent
f437112722
commit
9505e40fce
1 changed files with 6 additions and 0 deletions
|
@ -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,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue