Add autocmd to remove trailing white spaces
This commit is contained in:
parent
85c8aaaf55
commit
bdfc00159b
@ -30,3 +30,8 @@ vim.opt.list = true
|
|||||||
|
|
||||||
vim.opt.spelllang = 'en_us'
|
vim.opt.spelllang = 'en_us'
|
||||||
vim.opt.spell = true
|
vim.opt.spell = true
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd({ "BufWritePre" }, {
|
||||||
|
pattern = { "*" },
|
||||||
|
command = [[%s/\s\+$//e]],
|
||||||
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user