From 80fdc97c28257e2ebab33bd79467c9015f2a138e Mon Sep 17 00:00:00 2001 From: insects Date: Thu, 10 Apr 2025 18:36:35 +0200 Subject: [PATCH] nvim: nicer dashboard --- dot_config/nvim/lua/plugins/base.lua | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/dot_config/nvim/lua/plugins/base.lua b/dot_config/nvim/lua/plugins/base.lua index e9e2511..afe8f54 100644 --- a/dot_config/nvim/lua/plugins/base.lua +++ b/dot_config/nvim/lua/plugins/base.lua @@ -8,7 +8,28 @@ return { lazy = false, opts = { bigfiles = { enabled = true }, - dashboard = { enabled = true }, + dashboard = { + enabled = true, + sections = { + { section = "header" }, + { icon = " ", title = "Recent Files", section = "recent_files", indent = 2, padding = 1 }, + { icon = " ", title = "Projects", section = "projects", indent = 2, padding = 1 }, + { + icon = " ", + title = "Git Status", + section = "terminal", + enabled = function() + return Snacks.git.get_root() ~= nil + end, + cmd = "git status --short --branch --renames", + height = 5, + padding = 1, + ttl = 5 * 60, + indent = 3, + }, + }, + preset = { keys = {} }, + }, indent = { enabled = true, animate = { enabled = false } }, input = { enabled = true }, lazygit = { enabled = true, configure = true }, @@ -53,4 +74,8 @@ return { extensions = { lazy_nvim = true }, }, }, + { + "m4xshen/autoclose.nvim", + opts = {}, + }, }