Nvim: fix dashboard projects not working after lazy loading telescope

main
Marko Korhonen 6 months ago
parent 9e591464ce
commit b570b8a075
No known key found for this signature in database
GPG Key ID: A7F78BCB859CD890

@ -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,
},
},
},
}

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

Loading…
Cancel
Save