From 8d6949fd503179cc3953001964fe4602748f3739 Mon Sep 17 00:00:00 2001 From: Michael Short Date: Mon, 18 Nov 2024 10:24:48 -0700 Subject: [PATCH] adding dashbard --- init.lua | 39 ++++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/init.lua b/init.lua index 74f14a66..15665a79 100644 --- a/init.lua +++ b/init.lua @@ -203,6 +203,7 @@ vim.api.nvim_create_autocmd('TextYankPost', { vim.highlight.on_yank() end, }) +vim.api.nvim_set_keymap('n', 'e', ':lua MiniFiles.open()', { noremap = true, silent = true }) -- [[ Install `lazy.nvim` plugin manager ]] -- See `:help lazy.nvim.txt` or https://github.com/folke/lazy.nvim for more info @@ -237,6 +238,24 @@ require('lazy').setup({ -- -- Use `opts = {}` to force a plugin to be loaded. -- + { + 'echasnovski/mini.nvim', + version = false, + config = function() + require('mini.files').setup() + end, + }, + + { + 'nvimdev/dashboard-nvim', + event = 'VimEnter', + config = function() + require('dashboard').setup { + -- config + } + end, + dependencies = { {'nvim-tree/nvim-web-devicons'}} +}, { 'windwp/nvim-autopairs', @@ -255,13 +274,6 @@ require('lazy').setup({ end, }, - { - 'nvim-tree/nvim-web-devicons', - opts = function() - dofile(vim.g.base46_cache .. 'devicons') - end, - }, - { 'lukas-reineke/indent-blankline.nvim', event = 'User FilePost', @@ -280,13 +292,6 @@ require('lazy').setup({ end, }, - -- File managing, picker etc - { - 'nvim-tree/nvim-tree.lua', - cmd = { 'NvimTreeToggle', 'NvimTreeFocus' }, - opts = function() end, - }, - -- Here is a more advanced example where we pass configuration -- options to `gitsigns.nvim`. This is equivalent to the following Lua: -- require('gitsigns').setup({ ... }) @@ -643,8 +648,8 @@ require('lazy').setup({ clangd = {}, -- gopls = {}, pyright = {}, - html= {}, - cssls= {}, + html = {}, + cssls = {}, -- rust_analyzer = {}, -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs -- @@ -866,7 +871,7 @@ require('lazy').setup({ -- change the command in the config to whatever the name of that colorscheme is. -- -- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`. - 'rose-pine/neovim', + 'https://github.com/rose-pine/neovim.git', priority = 1000, -- Make sure to load this before all the other start plugins. init = function() -- Load the colorscheme here.