From 1ba6fff89ef9e8444f96b8ddfec484b5351fefb1 Mon Sep 17 00:00:00 2001 From: Ray Jameson <67468725+RayJameson@users.noreply.github.com> Date: Fri, 7 Jul 2023 04:57:34 +0600 Subject: [PATCH] fix(harpoon): Make which-key entry color blue, as it should be --- lua/astrocommunity/motion/harpoon/init.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/astrocommunity/motion/harpoon/init.lua b/lua/astrocommunity/motion/harpoon/init.lua index 4fbadc3fd..0f734726a 100644 --- a/lua/astrocommunity/motion/harpoon/init.lua +++ b/lua/astrocommunity/motion/harpoon/init.lua @@ -1,5 +1,9 @@ local prefix = "" local term_string = vim.fn.exists "$TMUX" == 1 and "tmux" or "terminal" +local maps = { n = {} } +local icon = vim.g.icons_enabled and "󱡀 " or "" +maps.n[prefix] = { desc = icon .. "Harpoon" } +require("astronvim.utils").set_mappings(maps) return { "ThePrimeagen/harpoon", dependencies = { @@ -8,7 +12,6 @@ return { }, cmd = { "Harpoon" }, keys = { - { prefix, function() end, desc = (vim.g.icons_enabled and "󱡀 " or "") .. "Harpoon" }, { prefix .. "a", function() require("harpoon.mark").add_file() end, desc = "Add file" }, { prefix .. "e", function() require("harpoon.ui").toggle_quick_menu() end, desc = "Toggle quick menu" }, {