From d331c624015a7b9028dd7d3f65bab16a3969ce29 Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 18 Mar 2024 10:19:06 +0100 Subject: up --- .config/nvim/lua/hooks.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.config/nvim/lua/hooks.lua') 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]], +}) -- cgit v1.2.3