Nvim: fix dashboard projects not working after lazy loading telescope
This commit is contained in:
parent
9e591464ce
commit
b570b8a075
|
@ -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…
Reference in a new issue