refactor(nvim): harpoon and arrow extra are now identified as marks

This commit is contained in:
sankalp committed 2024-03-08 21:27:58 +05:45
1 parent 7c886a1377
commit 880ce25631
3 files changed
+44 -18

No files matched your search

@@ -7,11 +7,11 @@ return {
},
keys = {
{
"<leader>h",
"<leader><cr>",
function()
require("arrow.ui").openMenu()
end,
desc = "Harpoon",
desc = "Marks",
},
},
},
@@ -21,4 +21,33 @@ return {
table.insert(opts.sections.lualine_c, require("arrow.statusline").text_for_statusline_with_icons())
end,
},
{
"goolord/alpha-nvim",
optional = true,
opts = function(_, dashboard)
-- stylua: ignore
local button = dashboard.button("m", "󱌧 " .. " Marks", function() require("arrow.ui").openMenu() end)
button.opts.hl = "AlphaButtons"
button.opts.hl_shortcut = "AlphaShortcut"
table.insert(dashboard.section.buttons.val, 5, button)
end,
},
{
"nvimdev/dashboard-nvim",
optional = true,
opts = function(_, opts)
-- stylua: ignore
local arrow = {
action = function() require("arrow.ui").openMenu() end,
desc = " Marks",
icon = "󱌧 ",
key = "m",
}
arrow.desc = arrow.desc .. string.rep(" ", 43 - #arrow.desc)
arrow.key_format = " %s"
table.insert(opts.config.center, 5, arrow)
end,
},
}