diff options
Diffstat (limited to 'Common/nvim/lua/helper_functions.lua')
-rwxr-xr-x | Common/nvim/lua/helper_functions.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Common/nvim/lua/helper_functions.lua b/Common/nvim/lua/helper_functions.lua index 715c2a7..7a17b78 100755 --- a/Common/nvim/lua/helper_functions.lua +++ b/Common/nvim/lua/helper_functions.lua @@ -41,6 +41,9 @@ vim.api.nvim_create_user_command('JoinLinesSQ', JoinLinesSQ, {bang=false, desc=' vim.api.nvim_create_user_command('JoinLinesDQ', JoinLinesDQ, {bang=false, desc='Joins all lines in a register', nargs='?'}) vim.api.nvim_create_user_command('JoinLinesBT', JoinLinesBT, {bang=false, desc='Joins all lines in a register', nargs='?'}) +-- Strip trailing spaces +vim.keymap.set('n', '<Leader>wt', [[:%s/\s\+$//e<cr>]]) + -- Close buffer without closing window --[[ vim.cmd [[ |