Nvim: fix dashboard projects not working after lazy loading telescope
This commit is contained in:
parent
efcdb566b8
commit
d2f19f1cff
2 changed files with 16 additions and 8 deletions
|
@ -3,7 +3,7 @@
|
||||||
return {
|
return {
|
||||||
"glepnir/dashboard-nvim",
|
"glepnir/dashboard-nvim",
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
dependencies = { { "kyazdani42/nvim-web-devicons" } },
|
dependencies = { "kyazdani42/nvim-web-devicons" },
|
||||||
opts = {
|
opts = {
|
||||||
theme = "hyper",
|
theme = "hyper",
|
||||||
config = {
|
config = {
|
||||||
|
@ -11,16 +11,23 @@ return {
|
||||||
enable = true,
|
enable = true,
|
||||||
},
|
},
|
||||||
shortcut = {
|
shortcut = {
|
||||||
{ icon = "🧲 ", desc = "Update", group = "@property", action = "Lazy update", key = "u" },
|
|
||||||
{
|
{
|
||||||
icon = "🖹 ",
|
icon = "🧲 ",
|
||||||
icon_hl = "@variable",
|
desc = "Update",
|
||||||
desc = "Files",
|
group = "@property",
|
||||||
group = "Label",
|
action = "Lazy update",
|
||||||
action = "Telescope find_files",
|
key = "u",
|
||||||
key = "f",
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
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
|
--- @type LazyPluginSpec
|
||||||
return {
|
return {
|
||||||
"nvim-telescope/telescope.nvim",
|
"nvim-telescope/telescope.nvim",
|
||||||
|
lazy = false,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
-- Internal dependency for telescope
|
-- Internal dependency for telescope
|
||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue