Feat(options): add gitname option

This allows customizing the github username for functions such as the dashboard contribution graph
This commit is contained in:
2025-02-17 18:38:45 -05:00
parent 46e1e88ff2
commit b430ed7b02
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -33,6 +33,8 @@ vim.g.usetinyinline = true ---@type boolean Options: <true|
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ GIT ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-- Github username for dashboard and other customizations
vim.g.gitname = 'rootiest' ---@type string Options: <github username>
-- Highlight lines with git changes
vim.g.git_line_hl = false ---@type boolean Options: <true|false>
-- Highlight words with git changes
+2 -1
View File
@@ -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,