Neovim: add dashboard
This commit is contained in:
parent
431cfeacb4
commit
ac671aabf0
2 changed files with 30 additions and 0 deletions
22
home/.config/nvim/lua/plugins/dashboard.lua
Normal file
22
home/.config/nvim/lua/plugins/dashboard.lua
Normal 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
|
|
@ -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 = {}
|
||||
|
|
Loading…
Reference in a new issue