add: update git branch icon

This commit is contained in:
asep.komarudin 2024-05-29 21:01:36 +07:00
parent 4164fe238b
commit c2eaa2c6a1
2 changed files with 2 additions and 1 deletions

View file

@ -58,6 +58,7 @@ return {
Octoface = "", Octoface = "",
Branch = "", Branch = "",
Branch2 = "", Branch2 = "",
Branch3 = "󰘬",
NoBranch = "󱓌", NoBranch = "󱓌",
}, },
ui = { ui = {

View file

@ -235,7 +235,7 @@ return {
-- git branch info -- git branch info
get_branch = function() get_branch = function()
if vim.b.gitsigns_head ~= nil then if vim.b.gitsigns_head ~= nil then
return icons.git.Branch2 .. " " .. getLeftSubstring(vim.b.gitsigns_head, 6) return icons.git.Branch3 .. " " .. getLeftSubstring(vim.b.gitsigns_head, 6)
else else
return icons.git.NoBranch .. vim.fn.fnamemodify("", ":t") return icons.git.NoBranch .. vim.fn.fnamemodify("", ":t")
end end