From 9d71574f0cd3d7ba7b37b12b143fce81eeccd463 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Thu, 6 Apr 2023 16:34:45 +0300 Subject: nvim: update dashboard config --- .config/nvim/lua/plugin_settings.lua | 44 ++++++++++++++---------------------- 1 file changed, 17 insertions(+), 27 deletions(-) (limited to '.config/nvim/lua/plugin_settings.lua') diff --git a/.config/nvim/lua/plugin_settings.lua b/.config/nvim/lua/plugin_settings.lua index 4d97720..55b3cae 100644 --- a/.config/nvim/lua/plugin_settings.lua +++ b/.config/nvim/lua/plugin_settings.lua @@ -248,35 +248,25 @@ require('telescope').load_extension('fzf') -- dashboard {{{ -- -local home = os.getenv('HOME') -local db = require('dashboard') -db.custom_header = { - '', - ' ▄ ▄███▄ ████▄ ▄ ▄█ █▀▄▀█ ', - ' █ █▀ ▀ █ █ █ ██ █ █ █ ', - '██ █ ██▄▄ █ █ █ █ ██ █ ▄ █ ', - '█ █ █ █▄ ▄▀ ▀████ █ █ ▐█ █ █ ', - '█ █ █ ▀███▀ █ █ ▐ █ ', - '█ ██ █▐ ▀ ', - ' ▐ ', - '', - '', -} -db.custom_center = { - { - desc = 'new file ', - action = 'DashboardNewFile', - }, - { - desc = 'find files ', - action = 'Telescope find_files', +require('dashboard').setup { + theme = 'hyper', + config = { + week_header = { + enable = true, + }, + shortcut = { + { desc = ' Update', group = '@property', action = 'PackerSync', key = 'u' }, + { + icon = ' ', + icon_hl = '@variable', + desc = 'Files', + group = 'Label', + action = 'Telescope find_files', + key = 'f', + }, + }, }, - { - desc = 'old files', - action = "Telescope oldfiles", - } } -db.custom_footer = { '⛅' } -- }}} dashboard -- -- cgit v1.2.3-70-g09d2