diff options
author | Joe <rbo@gmx.us> | 2024-03-18 10:19:06 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-03-18 10:19:06 +0100 |
commit | d331c624015a7b9028dd7d3f65bab16a3969ce29 (patch) | |
tree | a6a7faccff33215b3d09a313be34f69b964a8d11 /.config/nvim/lua | |
parent | up (diff) | |
download | dotfiles-bsd-d331c624015a7b9028dd7d3f65bab16a3969ce29.tar.gz dotfiles-bsd-d331c624015a7b9028dd7d3f65bab16a3969ce29.tar.bz2 dotfiles-bsd-d331c624015a7b9028dd7d3f65bab16a3969ce29.tar.xz dotfiles-bsd-d331c624015a7b9028dd7d3f65bab16a3969ce29.tar.zst dotfiles-bsd-d331c624015a7b9028dd7d3f65bab16a3969ce29.zip |
up
Diffstat (limited to '.config/nvim/lua')
-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]], +}) |