-
I'd like the branch section to always be active. If i'm not in an git repo i'd like to show 'NA'. If i'm in a git repo i'd like to show the branch name, per default behaviour of the branch component. Is this possible with the current Lualine implementation ? For LSP diagnostics there's a context switch to set it to I've tried playing around with |
Beta Was this translation helpful? Give feedback.
Answered by
fitrh
Mar 1, 2023
Replies: 1 comment 1 reply
-
I think you can use {
'branch',
fmt = function (str)
if str == '' then
return 'NA'
end
return str
end,
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lcrockett
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think you can use
fmt
component options