Neovim: add dashboard

This commit is contained in:
Marko Korhonen 2023-04-14 00:02:58 +03:00
parent 431cfeacb4
commit ac671aabf0
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,22 @@
return function()
require("dashboard").setup({
theme = "hyper",
config = {
week_header = {
enable = true,
},
shortcut = {
{ desc = " Update", group = "@property", action = "Lazy update", key = "u" },
{
icon = "",
icon_hl = "@variable",
desc = "Files",
group = "Label",
action = "Telescope find_files",
key = "f",
},
{ desc = "Quit", action = "q", key = "q" },
},
},
})
end

View file

@ -203,6 +203,14 @@ local plugins = {
-- Caddyfile syntax support
"isobit/vim-caddyfile",
-- Startup dashboard
{
"glepnir/dashboard-nvim",
event = "VimEnter",
config = require("plugins.dashboard"),
dependencies = { { "kyazdani42/nvim-web-devicons" } },
},
}
local lazy_opts = {}