This commit is contained in:
Sakooooo 2023-08-10 22:02:49 +03:00
parent de8beaa3d9
commit df9e7704e4
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -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,