diff --git a/config/nvim/lua/core/plugin_config/dashboard.lua b/config/nvim/lua/core/plugin_config/dashboard.lua new file mode 100644 index 00000000..3fa67640 --- /dev/null +++ b/config/nvim/lua/core/plugin_config/dashboard.lua @@ -0,0 +1,19 @@ +require('dashboard').setup { + theme = 'hyper' -- 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 eb35f111..b18c6dc4 100644 --- a/config/nvim/lua/core/plugin_config/init.lua +++ b/config/nvim/lua/core/plugin_config/init.lua @@ -11,3 +11,4 @@ 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 8433b6ed..c9a8f20a 100644 --- a/config/nvim/lua/core/plugins.lua +++ b/config/nvim/lua/core/plugins.lua @@ -68,6 +68,18 @@ local plugins = { -- color picker "ziontee113/color-picker.nvim", + + -- startup + { + 'glepnir/dashboard-nvim', + event = 'VimEnter', + config = function() + require('dashboard').setup { + -- config + } + end, + dependencies = { { 'nvim-tree/nvim-web-devicons' } } + } } require("lazy").setup(plugins, {}) diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index e61815b7..b7f373c6 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -60,7 +60,7 @@ dev = { editors = { nvim.enable = true; - vscode.fhs.enable = true; + vscode.fhs.enable = false; }; nixd.enable = false; nil.enable = true;