diff --git a/lua/user/keymaps.lua b/lua/user/keymaps.lua index 7e288b8..564eb51 100644 --- a/lua/user/keymaps.lua +++ b/lua/user/keymaps.lua @@ -44,8 +44,8 @@ end keymap("n", "h", "nohlsearch", opts) -- Close buffers -keymap("n", "", "Bdelete", opts) -keymap("n", "", "Bdelete!", opts) +keymap("n", "", "Bdelete", opts) +keymap("n", "", "Bdelete!", opts) -- Better paste keymap("v", "p", '"_dP', opts) @@ -74,8 +74,8 @@ keymap("n", "fb", ":Telescope buffers", opts) --keymap("n", "gg", "lua _LAZYGIT_TOGGLE()", opts) -- Comment -keymap("n", "/", "lua require('Comment.api').toggle_current_linewise()", opts) -keymap("x", "/", 'lua require("Comment.api").toggle_linewise_op(vim.fn.visualmode())') +keymap("n", "/", "lua require('Comment.api').toggle_current_linewise()", opts) +keymap("x", "/", 'lua require("Comment.api").toggle_linewise_op(vim.fn.visualmode())') -- DAP keymap("n", "", "lua require'dap'.toggle_breakpoint()", opts) @@ -99,10 +99,8 @@ keymap("n", "", "lua require'dap'.terminate()", opts) -- Shift+F5 --keymap("n", "di", "VimspectorBalloonEval", opts) -- move.vim --- Normal-mode commands -vim.keymap.set('n', '', ':MoveLine(1)', opts) -vim.keymap.set('n', '', ':MoveLine(-1)', opts) +vim.keymap.set('n', '', 'MoveLine(1)', opts) +vim.keymap.set('n', '', 'MoveLine(-1)', opts) +vim.keymap.set('v', '', 'MoveBlock(1)', opts) +vim.keymap.set('v', '', 'MoveBlock(-1)', opts) --- Visual-mode commands -vim.keymap.set('v', '', ':MoveBlock(1)', opts) -vim.keymap.set('v', '', ':MoveBlock(-1)', opts)