mirror of
https://git.korhonen.cc/FunctionalHacker/dotfiles.git
synced 2024-11-16 21:27:44 +00:00
Neovim: add dashboard
This commit is contained in:
parent
431cfeacb4
commit
ac671aabf0
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
|
-- Caddyfile syntax support
|
||||||
"isobit/vim-caddyfile",
|
"isobit/vim-caddyfile",
|
||||||
|
|
||||||
|
-- Startup dashboard
|
||||||
|
{
|
||||||
|
"glepnir/dashboard-nvim",
|
||||||
|
event = "VimEnter",
|
||||||
|
config = require("plugins.dashboard"),
|
||||||
|
dependencies = { { "kyazdani42/nvim-web-devicons" } },
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
local lazy_opts = {}
|
local lazy_opts = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user