Nvim: fix dashboard projects not working after lazy loading telescope

This commit is contained in:
Marko Korhonen 2023-11-25 14:58:52 +02:00
parent efcdb566b8
commit d2f19f1cff
2 changed files with 16 additions and 8 deletions

View file

@ -3,7 +3,7 @@
return {
"glepnir/dashboard-nvim",
event = "VimEnter",
dependencies = { { "kyazdani42/nvim-web-devicons" } },
dependencies = { "kyazdani42/nvim-web-devicons" },
opts = {
theme = "hyper",
config = {
@ -11,16 +11,23 @@ return {
enable = true,
},
shortcut = {
{ icon = "🧲 ", desc = "Update", group = "@property", action = "Lazy update", key = "u" },
{
icon = "🖹 ",
icon_hl = "@variable",
desc = "Files",
group = "Label",
action = "Telescope find_files",
key = "f",
icon = "🧲 ",
desc = "Update",
group = "@property",
action = "Lazy update",
key = "u",
},
},
project = {
enable = true,
limit = 8,
label = "Projects",
action = function(path)
-- "Telescope find_files cwd="
require("telescope.builtin").find_files({ cwd = path })
end,
},
},
},
}