Repository navigation
Expand file tree
/
Copy pathdashboard-nvim.lua
More file actions
64 lines (56 loc) · 2.74 KB
/
Copy pathdashboard-nvim.lua
File metadata and controls
64 lines (56 loc) · 2.74 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
local bg = [[
_|_
|
_|_
|
]]
local logo = [[
+⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣤⣴⣶⣶⣶⣶⣶⠶⣶⣤⣤⣀⠀⠀⠀⠀⠀⠀ +
+⠀⠀⠀⠀⠀⠀⠀⢀⣤⣾⣿⣿⣿⠁⠀⢀⠈⢿⢀⣀⠀⠹⣿⣿⣿⣦⣄⠀⠀⠀ +
+⠀⠀⠀⠀⠀⠀⣴⣿⣿⣿⣿⣿⠿⠀⠀⣟⡇⢘⣾⣽⠀⠀⡏⠉⠙⢛⣿⣷⡖⠀ +
+⠀⠀⠀⠀⠀⣾⣿⣿⡿⠿⠷⠶⠤⠙⠒⠀⠒⢻⣿⣿⡷⠋⠀⠴⠞⠋⠁⢙⣿⣄ +
+⠀⠀⠀⠀⢸⣿⣿⣯⣤⣤⣤⣤⣤⡄⠀⠀⠀⠀⠉⢹⡄⠀⠀⠀⠛⠛⠋⠉⠹⡇ +
+⠀⠀⠀⠀⢸⣿⣿⠀⠀⠀⣀⣠⣤⣤⣤⣤⣤⣤⣤⣼⣇⣀⣀⣀⣛⣛⣒⣲⢾⡷ +
+⢀⠤⠒⠒⢼⣿⣿⠶⠞⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠁⠀⣼⠃ +
+⢮⠀⠀⠀⠀⣿⣿⣆⠀⠀⠻⣿⡿⠛⠉⠉⠁⠀⠉⠉⠛⠿⣿⣿⠟⠁⠀⣼⠃⠀ +
+⠈⠓⠶⣶⣾⣿⣿⣿⣧⡀⠀⠈⠒⢤⣀⣀⡀⠀⠀⣀⣀⡠⠚⠁⠀⢀⡼⠃⠀⠀ +
+⠀⠀⠀⠈⢿⣿⣿⣿⣿⣿⣷⣤⣤⣤⣤⣭⣭⣭⣭⣭⣥⣤⣤⣤⣴⣟⠁ +
]]
local footer = [[
+-------------------------------------------------------------------------+
| ____ ____ _ _ |
| | _ \\ _ __ __ _ _ __ __ _ ___ _ __ | __ ) __ _ | | | |
| | | | | .__/ _. | .__/ _` |/ _ \\| ._ \\ | _ \\ / _` | | | |
| | |_| | | | (_| | | | (_| | (_) | | | | | |_) | (_| | | | |
| |____/|_| \\__,_|_| \\__, |\\___/|_| |_| |____/ \\__,_|_|_| |
| _ _ _ |___/ _____ _ |
| / \\ _ _| |_| |__ _ |_ _(_)_ __ ___ ___ ___ _ __ |
| / _ \\| | | | __| ._ \\ (_) | | | | ._ ` _ \\/ __|/ _ \\| ._ \\ |
| / ___ \\ |_| | |_| | | | _ | | | | | | | | \\__ \\ (_) | | | | |
| /_/ \\_\\__,_|\\__|_| |_| (_) |_| |_|_| |_| |_|___/\\___/|_| |_| |
| |
+-------------------------------------------------------------------------+
]]
local config = {
theme = 'hyper',
config = {
background = { lines = vim.split(bg, "\n"), tile = true, center = true },
header = vim.split(logo, '\n'),
footer = vim.split(footer, '\n'),
shortcut = {
{ icon = ' ', key = 'n', desc = 'Open New File ', action = 'tabnew' },
{ icon = ' ', key = 'w', desc = 'Find Work ', action = 'Telescope live_grep' },
{ icon = ' ', key = 'f', desc = 'Find File ', action = 'Telescope find_files' },
{ icon = ' ', key = 'e', desc = 'Edit keybindings', action = 'edit ~/.config/nvim/common/keybindings.vim' },
}
}
}
local M = {
'nvimdev/dashboard-nvim',
event = 'VimEnter',
config = function ()
require('dashboard').setup(config)
end,
dependencies = { {'nvim-tree/nvim-web-devicons'} }
}
return M