mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 16:39:04 +02:00
add: update git branch icon
This commit is contained in:
parent
4164fe238b
commit
c2eaa2c6a1
2 changed files with 2 additions and 1 deletions
|
@ -58,6 +58,7 @@ return {
|
||||||
Octoface = "",
|
Octoface = "",
|
||||||
Branch = "",
|
Branch = "",
|
||||||
Branch2 = "",
|
Branch2 = "",
|
||||||
|
Branch3 = "",
|
||||||
NoBranch = "",
|
NoBranch = "",
|
||||||
},
|
},
|
||||||
ui = {
|
ui = {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue