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 ++++++++++++++---------------------- .config/nvim/lua/plugins.lua | 10 +++++--- 2 files changed, 24 insertions(+), 30 deletions(-) (limited to '.config/nvim/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 -- diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index 6af54ee..8d1e2c4 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -41,7 +41,11 @@ return require('packer').startup(function(use) } -- dashboard - use 'glepnir/dashboard-nvim' + use { + 'glepnir/dashboard-nvim', + event = 'VimEnter', + requires = {'nvim-tree/nvim-web-devicons'} + } -- completion suite use 'hrsh7th/nvim-cmp' @@ -142,11 +146,11 @@ return require('packer').startup(function(use) use 'numToStr/Comment.nvim' -- icon pack - use 'kyazdani42/nvim-web-devicons' + use 'nvim-tree/nvim-web-devicons' -- statusline of the $CURRENT_YEAR use { 'nvim-lualine/lualine.nvim', - requires = {'kyazdani42/nvim-web-devicons', opt = true} + requires = {'nvim-tree/nvim-web-devicons', opt = true} } -- tabline use {'romgrk/barbar.nvim', wants = 'nvim-web-devicons'} -- cgit v1.2.3-70-g09d2