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

## Description
Different mapping and description to not be confused with
`snacks.projects`.
<!-- Describe the big picture of your changes to communicate to the
maintainers
  why we should accept this pull request. -->

## Related Issue(s)
Fixes #5736 
<!--
  If this PR fixes any issues, please link to the issue here.
  - Fixes #<issue_number>
-->

## Screenshots

<!-- Add screenshots of the changes if applicable. -->

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
This commit is contained in:
Iordanis Petkakis
2025-10-20 09:52:12 +03:00
committed by GitHub
parent 1b2e6e8986
commit e38944799e

View File

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