diff --git a/home/.config/nvim/lua/plugins/dashboard.lua b/home/.config/nvim/lua/plugins/dashboard.lua new file mode 100644 index 0000000..6d3881b --- /dev/null +++ b/home/.config/nvim/lua/plugins/dashboard.lua @@ -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 diff --git a/home/.config/nvim/lua/plugins/init.lua b/home/.config/nvim/lua/plugins/init.lua index 65e97aa..ffde711 100644 --- a/home/.config/nvim/lua/plugins/init.lua +++ b/home/.config/nvim/lua/plugins/init.lua @@ -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 = {}