diff options
Diffstat (limited to '')
-rw-r--r-- | .config/nvim/lua/hooks.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.config/nvim/lua/hooks.lua b/.config/nvim/lua/hooks.lua index e69de29..0d5ed32 100644 --- a/.config/nvim/lua/hooks.lua +++ b/.config/nvim/lua/hooks.lua @@ -0,0 +1,4 @@ +vim.api.nvim_create_autocmd({"BufWritePre"}, { + pattern = "*", + command = [[%s/\s\+$//e]], +}) |