fix(util.project): different mapping on dashboard than snacks.projects

This commit is contained in:
Iordanis Petkakis 2025-03-06 19:15:13 +02:00
parent cb223553ff
commit 2f098125fd

View file

@ -126,7 +126,7 @@ return {
"goolord/alpha-nvim", "goolord/alpha-nvim",
optional = true, optional = true,
opts = function(_, dashboard) opts = function(_, dashboard)
local button = dashboard.button("p", "" .. " Projects", pick) local button = dashboard.button("P", "" .. " Projects (util.project)", pick)
button.opts.hl = "AlphaButtons" button.opts.hl = "AlphaButtons"
button.opts.hl_shortcut = "AlphaShortcut" button.opts.hl_shortcut = "AlphaShortcut"
table.insert(dashboard.section.buttons.val, 4, button) table.insert(dashboard.section.buttons.val, 4, button)
@ -139,7 +139,7 @@ return {
opts = function(_, opts) opts = function(_, opts)
local items = { local items = {
{ {
name = "Projects", name = "Projects (util.project)",
action = pick, action = pick,
section = string.rep(" ", 22) .. "Telescope", section = string.rep(" ", 22) .. "Telescope",
}, },
@ -157,9 +157,9 @@ return {
end end
local projects = { local projects = {
action = pick, action = pick,
desc = " Projects", desc = " Projects (util.project)",
icon = "", icon = "",
key = "p", key = "P",
} }
projects.desc = projects.desc .. string.rep(" ", 43 - #projects.desc) projects.desc = projects.desc .. string.rep(" ", 43 - #projects.desc)
@ -175,9 +175,9 @@ return {
opts = function(_, opts) opts = function(_, opts)
table.insert(opts.dashboard.preset.keys, 3, { table.insert(opts.dashboard.preset.keys, 3, {
action = pick, action = pick,
desc = "Projects", desc = "Projects (util.project)",
icon = "", icon = "",
key = "p", key = "P",
}) })
end, end,
}, },