From 7bdce4f6b87bfceba1aee59226cef6137673e55c Mon Sep 17 00:00:00 2001 From: venus Date: Tue, 24 Mar 2026 02:26:47 -0500 Subject: [PATCH] added dashboard --- lazy-lock.json | 2 +- lua/plugins/dashboard.lua | 44 ++++++++++++++++++++++++++++++++++++ lua/plugins/lazy-plugins.lua | 11 --------- lua/plugins/lualine.lua | 3 ++- 4 files changed, 47 insertions(+), 13 deletions(-) create mode 100644 lua/plugins/dashboard.lua diff --git a/lazy-lock.json b/lazy-lock.json index e5fa6a8..715bbad 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -3,6 +3,7 @@ "base16-nvim": { "branch": "master", "commit": "190397833e53fdfd5cf400c5baaf1a4e533158e5" }, "blink.cmp": { "branch": "main", "commit": "451168851e8e2466bc97ee3e026c3dcb9141ce07" }, "bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" }, + "dashboard-nvim": { "branch": "master", "commit": "0775e567b6c0be96d01a61795f7b64c1758262f6" }, "diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" }, "fd": { "branch": "master", "commit": "9d137d358df10c441e51dcacc5899e43a4bee877" }, "fzf-lua": { "branch": "main", "commit": "8a79ee54d6216d10b2f153921a12b152be0c1a20" }, @@ -37,7 +38,6 @@ "sudo.nvim": { "branch": "main", "commit": "eed34f8636f0dd1bac89c81f6f96a86ca513f5f2" }, "telescope.nvim": { "branch": "master", "commit": "e69b434b968a33815e2f02a5c7bd7b8dd4c7d4b2" }, "themery.nvim": { "branch": "main", "commit": "bfa58f4b279d21cb515b28023e1b68ec908584b2" }, - "todo-comments.nvim": { "branch": "main", "commit": "31e3c38ce9b29781e4422fc0322eb0a21f4e8668" }, "toggleterm.nvim": { "branch": "main", "commit": "50ea089fc548917cc3cc16b46a8211833b9e3c7c" }, "trouble.nvim": { "branch": "main", "commit": "bd67efe408d4816e25e8491cc5ad4088e708a69a" }, "ts-comments.nvim": { "branch": "main", "commit": "123a9fb12e7229342f807ec9e6de478b1102b041" }, diff --git a/lua/plugins/dashboard.lua b/lua/plugins/dashboard.lua new file mode 100644 index 0000000..53dfaef --- /dev/null +++ b/lua/plugins/dashboard.lua @@ -0,0 +1,44 @@ +return { + 'nvimdev/dashboard-nvim', + event = 'VimEnter', + lazy = false, + config = function() + require('dashboard').setup( + { + theme = 'hyper', + config = { + week_header = { + enable = true, + }, + project = { + enable = false, + }, + shortcut = { + { desc = '󰊳 Update', group = '@property', action = 'Lazy update', key = 'u' }, + { + icon = ' ', + icon_hl = '@variable', + desc = 'Files', + group = 'Label', + action = 'Telescope find_files', + key = 'f', + }, + { + desc = ' file manager', + group = 'Label', + action = 'NvimTreeOpen', + key = 'e', + }, + { + icon = '', + desc = ' Quit', + group = 'Label', + action = 'quitall', + key = 'q', + }, + }, + }, + }) + end, + dependencies = { {'nvim-tree/nvim-web-devicons'}} +} diff --git a/lua/plugins/lazy-plugins.lua b/lua/plugins/lazy-plugins.lua index 27005bd..9ecbfe1 100644 --- a/lua/plugins/lazy-plugins.lua +++ b/lua/plugins/lazy-plugins.lua @@ -46,15 +46,4 @@ return { }, }, }, - -- { - -- "snacks.nvim", - -- opts = { - -- indent = { enabled = true }, - -- input = { enabled = true }, - -- notifier = { enabled = true }, - -- scope = { enabled = true }, - -- scroll = { enabled = true }, - -- statuscolumn = { enabled = false }, -- we set this in options.lua - -- } - -- }, } diff --git a/lua/plugins/lualine.lua b/lua/plugins/lualine.lua index 5ba8acf..4da6999 100644 --- a/lua/plugins/lualine.lua +++ b/lua/plugins/lualine.lua @@ -69,6 +69,7 @@ return { -- adds more detailed bar below the pane config = function() local bufferline = require('bufferline') bufferline.setup{ + options = { themable = true, numbers = "buffer_id", indicator = { @@ -81,7 +82,7 @@ return { -- adds more detailed bar below the pane left_trunc_marker = ' ', right_trunc_marker = ' ', diagnostics = "nvim_lsp", - + } } end },