diff --git a/.config/nvim/lua/plugins/extras/editor/harpoon.lua b/.config/nvim/lua/plugins/extras/editor/harpoon.lua index a970d5e6..77ae7679 100644 --- a/.config/nvim/lua/plugins/extras/editor/harpoon.lua +++ b/.config/nvim/lua/plugins/extras/editor/harpoon.lua @@ -3,17 +3,20 @@ return { "ThePrimeagen/harpoon", --stylua: ignore keys = { - { "fa", function() require("harpoon.mark").add_file() end, desc = "Add File to Harpoon" }, - { "fm", "Telescope harpoon marks", desc = "Marks" }, - { "1", function() require("harpoon.ui").nav_file(1) end, desc = "File 1" }, - { "2", function() require("harpoon.ui").nav_file(2) end, desc = "File 2" }, - { "3", function() require("harpoon.ui").nav_file(3) end, desc = "File 3" }, - { "4", function() require("harpoon.ui").nav_file(4) end, desc = "File 4" }, - { "5", function() require("harpoon.ui").nav_file(5) end, desc = "File 5" }, - { "6", function() require("harpoon.ui").nav_file(6) end, desc = "File 6" }, - { "7", function() require("harpoon.ui").nav_file(7) end, desc = "File 7" }, - { "8", function() require("harpoon.ui").nav_file(8) end, desc = "File 8" }, - { "9", function() require("harpoon.ui").nav_file(9) end, desc = "File 9" }, + { "ha", function() require("harpoon.mark").add_file() end, desc = "Add Mark" }, + { "hh", function() require("harpoon.ui").toggle_quick_menu() end, desc = "Menu" }, + { "hf", "Telescope harpoon marks", desc = "Files" }, + { "h1", function() require("harpoon.ui").nav_file(1) end, desc = "File 1" }, + { "h2", function() require("harpoon.ui").nav_file(2) end, desc = "File 2" }, + { "h3", function() require("harpoon.ui").nav_file(3) end, desc = "File 3" }, + { "h4", function() require("harpoon.ui").nav_file(4) end, desc = "File 4" }, + { "h5", function() require("harpoon.ui").nav_file(5) end, desc = "File 5" }, + { "h6", function() require("harpoon.ui").nav_file(6) end, desc = "File 6" }, + { "h7", function() require("harpoon.ui").nav_file(7) end, desc = "File 7" }, + { "h8", function() require("harpoon.ui").nav_file(8) end, desc = "File 8" }, + { "h9", function() require("harpoon.ui").nav_file(9) end, desc = "File 9" }, + { "]H", function() require("harpoon.ui").nav_next() end, desc = "Next Harpoon File" }, + { "[H", function() require("harpoon.ui").nav_prev() end, desc = "Prev Harpoon File" }, }, opts = { globalsettings = { @@ -31,7 +34,7 @@ return { "goolord/alpha-nvim", optional = true, opts = function(_, dashboard) - local button = dashboard.button("m", " " .. " Marks", "Telescope harpoon marks") + local button = dashboard.button("h", "󱌧 " .. " Harpoon", "Telescope harpoon marks") button.opts.hl = "AlphaButtons" button.opts.hl_shortcut = "AlphaShortcut" table.insert(dashboard.section.buttons.val, 5, button) @@ -43,9 +46,9 @@ return { opts = function(_, opts) local harpoon = { action = "Telescope harpoon marks", - desc = " Marks", - icon = " ", - key = "m", + desc = " Harpoon", + icon = "󱌧 ", + key = "h", } harpoon.desc = harpoon.desc .. string.rep(" ", 43 - #harpoon.desc) @@ -54,4 +57,12 @@ return { table.insert(opts.config.center, 5, harpoon) end, }, + { + "folke/which-key.nvim", + opts = { + defaults = { + ["h"] = { name = "+󱌧 harpoon" }, + }, + }, + }, }