From 6f139d280b564f4196b8604d790495e69e902d48 Mon Sep 17 00:00:00 2001 From: Miguel Da Silva Date: Fri, 13 Sep 2024 21:57:10 +0200 Subject: [PATCH] change harpoon quick menu shortcut and add windows focus shortcut --- lua/keymaps.lua | 5 +++++ lua/kickstart/plugins/harpoon.lua | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lua/keymaps.lua b/lua/keymaps.lua index c9b5d828..627d4e41 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -17,6 +17,11 @@ vim.keymap.set('n', 'Q', ':noh') vim.keymap.set('n', 'w', ':w', { desc = 'Save file' }) vim.keymap.set('n', 'q', ':q', { desc = 'Quit' }) +vim.keymap.set('n', '', '', { desc = 'Moves focus to upper window' }) +vim.keymap.set('n', '', '', { desc = 'Moves focus to lower window' }) +vim.keymap.set('n', '', '', { desc = 'Moves focus to left window' }) +vim.keymap.set('n', '', '', { desc = 'Moves focus to right window' }) + -- insert mode vim.keymap.set('i', '', '') vim.keymap.set('i', '', '') diff --git a/lua/kickstart/plugins/harpoon.lua b/lua/kickstart/plugins/harpoon.lua index 687d45d8..779d1f8a 100644 --- a/lua/kickstart/plugins/harpoon.lua +++ b/lua/kickstart/plugins/harpoon.lua @@ -15,7 +15,7 @@ return { map('n', 'a', function() harpoon:list():add() end) - map('n', '', function() + map('n', '', function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)