diff --git a/lua/pippy/init.lua b/lua/pippy/init.lua index 259a9c4..f9c52ac 100644 --- a/lua/pippy/init.lua +++ b/lua/pippy/init.lua @@ -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]], +})