mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-22 00:49:01 +02:00
add: no branch icon
This commit is contained in:
parent
ffbb97621d
commit
4164fe238b
2 changed files with 196 additions and 195 deletions
|
@ -58,6 +58,7 @@ return {
|
||||||
Octoface = "",
|
Octoface = "",
|
||||||
Branch = "",
|
Branch = "",
|
||||||
Branch2 = "",
|
Branch2 = "",
|
||||||
|
NoBranch = "",
|
||||||
},
|
},
|
||||||
ui = {
|
ui = {
|
||||||
ArrowCircleDown = "",
|
ArrowCircleDown = "",
|
||||||
|
|
|
@ -237,7 +237,7 @@ return {
|
||||||
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.Branch2 .. " " .. getLeftSubstring(vim.b.gitsigns_head, 6)
|
||||||
else
|
else
|
||||||
return icons.git.Branch2 .. vim.fn.fnamemodify("", ":t")
|
return icons.git.NoBranch .. vim.fn.fnamemodify("", ":t")
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue