From 74a761bee31229488db1a5d6ccb6fef378716019 Mon Sep 17 00:00:00 2001 From: Adam French Date: Thu, 12 Mar 2026 15:40:06 +0000 Subject: [PATCH] change harpoon keybinds to fit with AI key --- nvim/lua/plugins/autopairs.lua | 3 +- nvim/lua/plugins/harpoon.lua | 52 +++++++++++++++++++++++++++++----- 2 files changed, 47 insertions(+), 8 deletions(-) diff --git a/nvim/lua/plugins/autopairs.lua b/nvim/lua/plugins/autopairs.lua index a0fb1f2..5aeade2 100644 --- a/nvim/lua/plugins/autopairs.lua +++ b/nvim/lua/plugins/autopairs.lua @@ -4,4 +4,5 @@ return { event = "InsertEnter", opts = {}, }, -} \ No newline at end of file +} + diff --git a/nvim/lua/plugins/harpoon.lua b/nvim/lua/plugins/harpoon.lua index a919e90..af0e019 100644 --- a/nvim/lua/plugins/harpoon.lua +++ b/nvim/lua/plugins/harpoon.lua @@ -5,12 +5,50 @@ return { dependencies = { "nvim-lua/plenary.nvim" }, opts = {}, keys = { - { "a", function() require("harpoon"):list():add() end, desc = "Harpoon Add File" }, - { "", function() local harpoon = require("harpoon") harpoon.ui:toggle_quick_menu(harpoon:list()) end, desc = "Harpoon Quick Menu" }, - { "", function() require("harpoon"):list():select(1) end, desc = "Harpoon File 1" }, - { "", function() require("harpoon"):list():select(2) end, desc = "Harpoon File 2" }, - { "", function() require("harpoon"):list():select(3) end, desc = "Harpoon File 3" }, - { "", function() require("harpoon"):list():select(4) end, desc = "Harpoon File 4" }, + { + "h", + function() + require("harpoon"):list():add() + end, + desc = "Harpoon Add File", + }, + { + "", + function() + local harpoon = require("harpoon") + harpoon.ui:toggle_quick_menu(harpoon:list()) + end, + desc = "Harpoon Quick Menu", + }, + { + "", + function() + require("harpoon"):list():select(1) + end, + desc = "Harpoon File 1", + }, + { + "", + function() + require("harpoon"):list():select(2) + end, + desc = "Harpoon File 2", + }, + { + "", + function() + require("harpoon"):list():select(3) + end, + desc = "Harpoon File 3", + }, + { + "", + function() + require("harpoon"):list():select(4) + end, + desc = "Harpoon File 4", + }, }, }, -} \ No newline at end of file +} +