mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix(util.project): different mapping on dashboard than snacks.projects
This commit is contained in:
parent
cb223553ff
commit
2f098125fd
1 changed files with 6 additions and 6 deletions
|
|
@ -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,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue