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 9e591464ce
commit b570b8a075
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890
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,
},
},
},
}

View file

@ -1,6 +1,7 @@
--- @type LazyPluginSpec
return {
"nvim-telescope/telescope.nvim",
lazy = false,
dependencies = {
-- Internal dependency for telescope
"nvim-lua/plenary.nvim",