diff --git a/config/nvim/lua/core/plugins.lua b/config/nvim/lua/core/plugins.lua index 98e9f365..c76d054d 100644 --- a/config/nvim/lua/core/plugins.lua +++ b/config/nvim/lua/core/plugins.lua @@ -1,4 +1,5 @@ -- bootstrap lazy.nvim +local dashboard_configuration = require "core.plugin_config.dashboard" local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" if not vim.loop.fs_stat(lazypath) then vim.fn.system({ @@ -72,11 +73,7 @@ local plugins = { -- startup { 'glepnir/dashboard-nvim', - config = function() - require('dashboard').setup { - require('plugin_config.dashboard') - } - end, + config = dashboard_configuration.get_sections(), event = 'VimEnter', dependencies = { { 'nvim-tree/nvim-web-devicons' } } },