From 8c8f8b016ce72dc1831aa267f928de0dd5550d78 Mon Sep 17 00:00:00 2001 From: TheSoeren Date: Thu, 6 Jun 2024 15:05:45 +0200 Subject: [PATCH] adjust key bindings --- lua/custom/plugins/harpoon.lua | 8 ++++---- lua/remap.lua | 11 +++++------ 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/lua/custom/plugins/harpoon.lua b/lua/custom/plugins/harpoon.lua index 41fa0b71..88956d13 100644 --- a/lua/custom/plugins/harpoon.lua +++ b/lua/custom/plugins/harpoon.lua @@ -33,16 +33,16 @@ return { vim.keymap.set('n', 'a', function() harpoon:list():add() end) - vim.keymap.set('n', '1', function() + vim.keymap.set('n', '', function() harpoon:list():select(1) end) - vim.keymap.set('n', '2', function() + vim.keymap.set('n', '', function() harpoon:list():select(2) end) - vim.keymap.set('n', '3', function() + vim.keymap.set('n', '', function() harpoon:list():select(3) end) - vim.keymap.set('n', '4', function() + vim.keymap.set('n', '', function() harpoon:list():select(4) end) diff --git a/lua/remap.lua b/lua/remap.lua index 77a98f34..0ba1bf50 100644 --- a/lua/remap.lua +++ b/lua/remap.lua @@ -27,13 +27,12 @@ vim.keymap.set('n', '', 'echo "Use k to move!!"') vim.keymap.set('n', '', 'echo "Use j to move!!"') -- Keybinds to make split navigation easier. --- Use CTRL+ to switch between windows --- -- See `:help wincmd` for a list of all window commands -vim.keymap.set('n', '', '', { desc = 'Move focus to the left window' }) -vim.keymap.set('n', '', '', { desc = 'Move focus to the right window' }) -vim.keymap.set('n', '', '', { desc = 'Move focus to the lower window' }) -vim.keymap.set('n', '', '', { desc = 'Move focus to the upper window' }) +-- THIS WOULD CLASH WITH HARPOON BUFFER SELECTION +-- vim.keymap.set('n', '', '', { desc = 'Move focus to the left window' }) +-- vim.keymap.set('n', '', '', { desc = 'Move focus to the right window' }) +-- vim.keymap.set('n', '', '', { desc = 'Move focus to the lower window' }) +-- vim.keymap.set('n', '', '', { desc = 'Move focus to the upper window' }) -- Enable moving highlighted lines vim.keymap.set('v', 'J', ":m '>+1gv=gv")