From b430ed7b0217627c41bcc85ddc765c7939c272b3 Mon Sep 17 00:00:00 2001 From: rootiest Date: Mon, 17 Feb 2025 18:38:45 -0500 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Feat(options):=20add=20gitname=20op?= =?UTF-8?q?tion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows customizing the github username for functions such as the dashboard contribution graph --- lua/config/options.lua | 2 ++ lua/plugins/dashboard/snacks.lua | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/config/options.lua b/lua/config/options.lua index a17f2ae..69181f2 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -33,6 +33,8 @@ vim.g.usetinyinline = true ---@type boolean Options: -- Highlight lines with git changes vim.g.git_line_hl = false ---@type boolean Options: -- Highlight words with git changes diff --git a/lua/plugins/dashboard/snacks.lua b/lua/plugins/dashboard/snacks.lua index 26874b2..82c65a3 100644 --- a/lua/plugins/dashboard/snacks.lua +++ b/lua/plugins/dashboard/snacks.lua @@ -68,9 +68,10 @@ local function create_sections(neovide) }) if not neovide then + local usrname = vim.g.gitname or 'rootiest' table.insert(sections, { section = 'terminal', - cmd = 'kusa rootiest && sleep 0.2', + cmd = 'kusa ' .. usrname .. ' && sleep 0.2', padding = { 0, 0 }, height = 10, width = 106,