2023-11-18 02:27:14 +02:00
|
|
|
-- Startup dashboard
|
2023-11-25 14:37:36 +02:00
|
|
|
--- @type LazyPluginSpec
|
2023-11-18 02:27:14 +02:00
|
|
|
return {
|
|
|
|
"glepnir/dashboard-nvim",
|
|
|
|
event = "VimEnter",
|
2023-11-25 14:58:52 +02:00
|
|
|
dependencies = { "kyazdani42/nvim-web-devicons" },
|
2023-11-18 02:27:14 +02:00
|
|
|
opts = {
|
2023-04-14 00:02:58 +03:00
|
|
|
theme = "hyper",
|
|
|
|
config = {
|
|
|
|
week_header = {
|
|
|
|
enable = true,
|
|
|
|
},
|
|
|
|
shortcut = {
|
|
|
|
{
|
2023-11-25 14:58:52 +02:00
|
|
|
icon = "🧲 ",
|
|
|
|
desc = "Update",
|
|
|
|
group = "@property",
|
|
|
|
action = "Lazy update",
|
|
|
|
key = "u",
|
2023-04-14 00:02:58 +03:00
|
|
|
},
|
|
|
|
},
|
2023-11-25 14:58:52 +02:00
|
|
|
project = {
|
|
|
|
enable = true,
|
|
|
|
limit = 8,
|
|
|
|
label = "Projects",
|
|
|
|
action = function(path)
|
|
|
|
-- "Telescope find_files cwd="
|
|
|
|
require("telescope.builtin").find_files({ cwd = path })
|
|
|
|
end,
|
|
|
|
},
|
2023-04-14 00:02:58 +03:00
|
|
|
},
|
2023-11-18 02:27:14 +02:00
|
|
|
},
|
|
|
|
}
|