From 35bb137263d44a2f5ffc111dc41d1462a33d254d Mon Sep 17 00:00:00 2001 From: Andy Teijelo Date: Thu, 3 Nov 2022 11:11:08 -0400 Subject: [PATCH] small keymap tweaks --- lua/user/keymaps.lua | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) 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)