Add autocmd to remove trailing white spaces

This commit is contained in:
Daniel Weber 2024-06-14 15:06:18 -04:00
parent 85c8aaaf55
commit bdfc00159b

View File

@ -30,3 +30,8 @@ vim.opt.list = true
vim.opt.spelllang = 'en_us'
vim.opt.spell = true
vim.api.nvim_create_autocmd({ "BufWritePre" }, {
pattern = { "*" },
command = [[%s/\s\+$//e]],
})