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 = "",
Branch = "",
Branch2 = "",
Branch3 = "󰘬",
NoBranch = "󱓌",
},
ui = {

View file

@ -235,7 +235,7 @@ return {
-- git branch info
get_branch = function()
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
return icons.git.NoBranch .. vim.fn.fnamemodify("", ":t")
end