-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdashboard-nvim.lua
More file actions
48 lines (48 loc) · 1.37 KB
/
dashboard-nvim.lua
File metadata and controls
48 lines (48 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---@type LazyPluginSpec
return {
"nvimdev/dashboard-nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
event = "VimEnter",
cmd = "Dashboard",
config = function()
local opts = {
theme = "hyper",
config = {
week_header = {
enable = true,
},
shortcut = {
{
desc = " Buffer",
group = "Number",
action = function()
local util = require("core.util")
util.smart_bd()
end,
key = "q",
},
{
desc = " Files",
group = "Label",
action = "Telescope find_files",
key = "f",
},
{
desc = " Update",
group = "@property",
action = "Lazy update",
key = "u",
},
},
project = { enable = true, limit = 5 },
mru = { enable = true, limit = 7 },
footer = { "", "softwareQ Inc.", "Designing Quantum Software" },
},
hide = {
statusline = false,
},
}
vim.opt.shortmess:append("I") -- disable Neovim welcome message
require("dashboard").setup(opts)
end,
}