nvim: add config files
This commit is contained in:
75
nvim/lua/plugins/dashboard-nvim.lua
Normal file
75
nvim/lua/plugins/dashboard-nvim.lua
Normal file
@@ -0,0 +1,75 @@
|
||||
|
||||
return {
|
||||
'nvimdev/dashboard-nvim',
|
||||
-- event = 'VimEnter',
|
||||
config = function()
|
||||
require('dashboard').setup {
|
||||
theme = 'hyper',
|
||||
config = {
|
||||
week_header = {
|
||||
enable = false,
|
||||
},
|
||||
packages = {
|
||||
enable = false,
|
||||
},
|
||||
--header = {
|
||||
-- " __ _ ",
|
||||
-- " /\\ \\ \\__ _(_)_ __ ___ ",
|
||||
-- " / \\/ /\\ \\ / / | '_ ` _ \\ ",
|
||||
-- "/ /\\ / \\ V /| | | | | | |",
|
||||
-- "\\_\\ \\/ \\_/ |_|_| |_| |_|",
|
||||
-- "==================================",
|
||||
-- "on " .. vim.fn.hostname(),
|
||||
-- ""
|
||||
--},
|
||||
header = {
|
||||
" ___ __ __ ",
|
||||
" / | / /____/ /_ ___ ____ ___ __ __",
|
||||
" / /| | / / ___/ __ \\/ _ \\/ __ `__ \\/ / / /",
|
||||
" / ___ |/ / /__/ / / / __/ / / / / / /_/ / ",
|
||||
"/_/ |_/_/\\___/_/ /_/\\___/_/ /_/ /_/\\__, / ",
|
||||
" Nvim /____/ ",
|
||||
"............................................",
|
||||
"on " .. vim.fn.hostname(),
|
||||
""
|
||||
},
|
||||
shortcut = {
|
||||
{
|
||||
desc = ' Files',
|
||||
action = 'Telescope find_files',
|
||||
group = 'DashboardHotkeyFiles',
|
||||
key = 'f',
|
||||
},
|
||||
{
|
||||
desc = ' Projects',
|
||||
group = 'DashboardHotkeyProjects',
|
||||
action = 'Telescope projects',
|
||||
key = 'p',
|
||||
},
|
||||
{
|
||||
desc = ' Notes',
|
||||
group = 'DashboardHotkeyNotes',
|
||||
action = 'SearchNotes',
|
||||
key = 'n',
|
||||
},
|
||||
{
|
||||
desc = ' dotfiles',
|
||||
group = 'DashboardHotkeyDotfiles',
|
||||
action = 'SearchDotfiles',
|
||||
key = 'd',
|
||||
},
|
||||
{
|
||||
desc = ' Quit',
|
||||
group = 'DashboardHotkeyQuit',
|
||||
action = 'q',
|
||||
key = 'q',
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
end,
|
||||
dependencies = {
|
||||
'nvim-tree/nvim-web-devicons',
|
||||
'nvim-telescope/telescope.nvim',
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user