From ffc5ebcc5819317c295d0eccab46f0c2181138c0 Mon Sep 17 00:00:00 2001 From: Tovi Jaeschke-Rogers Date: Fri, 10 May 2024 10:23:33 +0930 Subject: [PATCH] fix: harpoon keybinds --- .config/nvim/lua/tovi/plugins/dashboard.lua | 37 --------------------- .config/nvim/lua/tovi/plugins/harpoon.lua | 30 ++++++++--------- 2 files changed, 15 insertions(+), 52 deletions(-) delete mode 100644 .config/nvim/lua/tovi/plugins/dashboard.lua diff --git a/.config/nvim/lua/tovi/plugins/dashboard.lua b/.config/nvim/lua/tovi/plugins/dashboard.lua deleted file mode 100644 index e98639a..0000000 --- a/.config/nvim/lua/tovi/plugins/dashboard.lua +++ /dev/null @@ -1,37 +0,0 @@ -return { - 'nvimdev/dashboard-nvim', - event = 'VimEnter', - config = function() - require('dashboard').setup({ - theme = 'hyper', - config = { - week_header = { - enable = true, - }, - shortcut = { - { - desc = '󰊳 Update', - group = '@property', - action = 'Lazy update', - key = 'u' - }, - { - icon = ' ', - icon_hl = '@variable', - desc = 'Files', - group = 'Label', - action = 'Telescope find_files', - key = 'f', - }, - { - desc = ' dotfiles', - group = 'Number', - action = 'TelescopeDotfiles', - key = 'd', - }, - }, - }, - }) - end, - dependencies = { {'nvim-tree/nvim-web-devicons'}} -} diff --git a/.config/nvim/lua/tovi/plugins/harpoon.lua b/.config/nvim/lua/tovi/plugins/harpoon.lua index f79a834..463c908 100644 --- a/.config/nvim/lua/tovi/plugins/harpoon.lua +++ b/.config/nvim/lua/tovi/plugins/harpoon.lua @@ -21,20 +21,20 @@ return { harpoon.ui:toggle_quick_menu(harpoon:list()) end, { desc = "Toggle quick menu for harpoon" }) - -- keymap.set("n", "", function() - -- harpoon:list():select(1) - -- end, { desc = "Go to first harpoon file" }) - -- - -- keymap.set("n", "", function() - -- harpoon:list():select(2) - -- end, { desc = "Go to second harpoon file" }) - -- - -- keymap.set("n", "", function() - -- harpoon:list():select(3) - -- end, { desc = "Go to third harpoon file" }) - -- - -- keymap.set("n", "", function() - -- harpoon:list():select(4) - -- end, { desc = "Go to fourth harpoon file" }) + keymap.set("n", "", function() + harpoon:list():select(1) + end, { desc = "Go to first harpoon file" }) + + keymap.set("n", "", function() + harpoon:list():select(2) + end, { desc = "Go to second harpoon file" }) + + keymap.set("n", "", function() + harpoon:list():select(3) + end, { desc = "Go to third harpoon file" }) + + keymap.set("n", "", function() + harpoon:list():select(4) + end, { desc = "Go to fourth harpoon file" }) end, }