✨ Feat(options): add gitname option
This allows customizing the github username for functions such as the dashboard contribution graph
This commit is contained in:
@@ -33,6 +33,8 @@ vim.g.usetinyinline = true ---@type boolean Options: <true|
|
|||||||
|
|
||||||
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ GIT ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ GIT ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||||
|
|
||||||
|
-- Github username for dashboard and other customizations
|
||||||
|
vim.g.gitname = 'rootiest' ---@type string Options: <github username>
|
||||||
-- Highlight lines with git changes
|
-- Highlight lines with git changes
|
||||||
vim.g.git_line_hl = false ---@type boolean Options: <true|false>
|
vim.g.git_line_hl = false ---@type boolean Options: <true|false>
|
||||||
-- Highlight words with git changes
|
-- Highlight words with git changes
|
||||||
|
|||||||
@@ -68,9 +68,10 @@ local function create_sections(neovide)
|
|||||||
})
|
})
|
||||||
|
|
||||||
if not neovide then
|
if not neovide then
|
||||||
|
local usrname = vim.g.gitname or 'rootiest'
|
||||||
table.insert(sections, {
|
table.insert(sections, {
|
||||||
section = 'terminal',
|
section = 'terminal',
|
||||||
cmd = 'kusa rootiest && sleep 0.2',
|
cmd = 'kusa ' .. usrname .. ' && sleep 0.2',
|
||||||
padding = { 0, 0 },
|
padding = { 0, 0 },
|
||||||
height = 10,
|
height = 10,
|
||||||
width = 106,
|
width = 106,
|
||||||
|
|||||||
Reference in New Issue
Block a user