hyper
This commit is contained in:
parent
de8beaa3d9
commit
df9e7704e4
1 changed files with 11 additions and 20 deletions
|
@ -74,7 +74,7 @@ local plugins = {
|
||||||
'glepnir/dashboard-nvim',
|
'glepnir/dashboard-nvim',
|
||||||
config = function()
|
config = function()
|
||||||
require('dashboard').setup {
|
require('dashboard').setup {
|
||||||
theme = 'doom', -- theme is doom and hyper default is hyper
|
theme = 'hyper', -- theme is doom and hyper default is hyper
|
||||||
config = {
|
config = {
|
||||||
-- todo https://github.com/nvimdev/dashboard-nvim
|
-- todo https://github.com/nvimdev/dashboard-nvim
|
||||||
header = {
|
header = {
|
||||||
|
@ -100,26 +100,17 @@ local plugins = {
|
||||||
'',
|
'',
|
||||||
'',
|
'',
|
||||||
}, --your header
|
}, --your header
|
||||||
center = {
|
shortcut = {
|
||||||
{
|
-- action can be a function type
|
||||||
icon = ' ',
|
{ desc = string, group = 'highlight group', key = 'shortcut key', action = 'action when you press key' },
|
||||||
icon_hl = 'Title',
|
|
||||||
desc = 'Find File ',
|
|
||||||
desc_hl = 'String',
|
|
||||||
key = 'b',
|
|
||||||
keymap = 'SPC f f',
|
|
||||||
key_hl = 'Number',
|
|
||||||
action = 'lua print(2)'
|
|
||||||
},
|
},
|
||||||
{
|
packages = { enable = true }, -- show how many plugins neovim loaded
|
||||||
icon = ' ',
|
-- limit how many projects list, action when you press key or enter it will run this action.
|
||||||
desc = 'Find Dotfiles',
|
-- action can be a functino type, e.g.
|
||||||
key = 'f',
|
-- action = func(path) vim.cmd('Telescope find_files cwd=' .. path) end
|
||||||
keymap = 'SPC f d',
|
project = { enable = true, limit = 8, icon = 'your icon', label = '', action = 'Telescope find_files cwd=' },
|
||||||
action = 'lua print(3)'
|
mru = { limit = 10, icon = 'your icon', label = '', },
|
||||||
},
|
footer = {}, -- footer
|
||||||
},
|
|
||||||
footer = {} --your footer
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Reference in a new issue