mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-03-10 09:27:25 +00:00
feat(snacks.picker): add projects picker to dashboard if snacks picker is enabled
This commit is contained in:
@@ -325,4 +325,18 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"folke/snacks.nvim",
|
||||||
|
opts = function(_, opts)
|
||||||
|
if not opts.picker then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
table.insert(opts.dashboard.preset.keys, 3, {
|
||||||
|
icon = " ",
|
||||||
|
key = "p",
|
||||||
|
desc = "Projects",
|
||||||
|
action = ":lua Snacks.picker.projects()",
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user