diff --git a/config/nvim/lua/core/plugin_config/dashboard.lua b/config/nvim/lua/core/plugin_config/dashboard.lua deleted file mode 100644 index 82368acd..00000000 --- a/config/nvim/lua/core/plugin_config/dashboard.lua +++ /dev/null @@ -1,18 +0,0 @@ -require('dashboard').setup { - theme = 'doom', -- theme is doom and hyper default is hyper - disable_move, -- default is false disable move keymap for hyper - shortcut_type, -- shorcut type 'letter' or 'number' - change_to_vcs_root, -- default is false,for open file in hyper mru. it will change to the root of vcs - config = {}, -- config used for theme - hide = { - statusline, -- hide statusline default is true - tabline, -- hide the tabline - winbar, -- hide winbar - }, - preview = { - command, -- preview command - file_path, -- preview file path - file_height, -- preview file height - file_width, -- preview file width - }, -} diff --git a/config/nvim/lua/core/plugin_config/init.lua b/config/nvim/lua/core/plugin_config/init.lua index b18c6dc4..eb35f111 100644 --- a/config/nvim/lua/core/plugin_config/init.lua +++ b/config/nvim/lua/core/plugin_config/init.lua @@ -11,4 +11,3 @@ require("core.plugin_config.null_ls") require("core.plugin_config.colorscheme") require("core.plugin_config.liveserver") require("core.plugin_config.color-picker") -require("core.plugin_config.dashboard") diff --git a/config/nvim/lua/core/plugins.lua b/config/nvim/lua/core/plugins.lua index c920fb83..ef5373fc 100644 --- a/config/nvim/lua/core/plugins.lua +++ b/config/nvim/lua/core/plugins.lua @@ -72,6 +72,26 @@ local plugins = { -- startup { 'glepnir/dashboard-nvim', + config = function() + require('dashboard').setup { + theme = 'doom', -- theme is doom and hyper default is hyper + disable_move, -- default is false disable move keymap for hyper + shortcut_type, -- shorcut type 'letter' or 'number' + change_to_vcs_root, -- default is false,for open file in hyper mru. it will change to the root of vcs + config = {}, -- config used for theme + hide = { + statusline, -- hide statusline default is true + tabline, -- hide the tabline + winbar, -- hide winbar + }, + preview = { + command, -- preview command + file_path, -- preview file path + file_height, -- preview file height + file_width, -- preview file width + }, + } + end, event = 'VimEnter', dependencies = { { 'nvim-tree/nvim-web-devicons' } } }