diff options
author | Joe <rbo@gmx.us> | 2024-09-09 16:27:50 +0200 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-09-09 16:27:50 +0200 |
commit | 5023d7fb5753c3f3a6e135b6090dbdcfa13a3e37 (patch) | |
tree | 7407574da902c192ccf077052ed1aebded231e95 /.config/nvim/lua/hooks.lua | |
parent | up (diff) | |
download | dotfiles-bsd-5023d7fb5753c3f3a6e135b6090dbdcfa13a3e37.tar.gz dotfiles-bsd-5023d7fb5753c3f3a6e135b6090dbdcfa13a3e37.tar.bz2 dotfiles-bsd-5023d7fb5753c3f3a6e135b6090dbdcfa13a3e37.tar.xz dotfiles-bsd-5023d7fb5753c3f3a6e135b6090dbdcfa13a3e37.tar.zst dotfiles-bsd-5023d7fb5753c3f3a6e135b6090dbdcfa13a3e37.zip |
up
Diffstat (limited to '.config/nvim/lua/hooks.lua')
-rw-r--r-- | .config/nvim/lua/hooks.lua | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/.config/nvim/lua/hooks.lua b/.config/nvim/lua/hooks.lua index eaf0687..aeb43a9 100644 --- a/.config/nvim/lua/hooks.lua +++ b/.config/nvim/lua/hooks.lua @@ -1,8 +1,8 @@ -vim.api.nvim_create_autocmd({"BufWritePre"}, { - pattern = "*", - callback = function(ev) - save_cursor = vim.fn.getpos(".") - vim.cmd([[%s/\s\+$//e]]) - vim.fn.setpos(".", save_cursor) - end, -}) +-- vim.api.nvim_create_autocmd({"BufWritePre"}, { +-- pattern = "*", +-- callback = function(ev) +-- save_cursor = vim.fn.getpos(".") +-- vim.cmd([[%s/\s\+$//e]]) +-- vim.fn.setpos(".", save_cursor) +-- end, +-- }) |