chore(statusline): clean out deprecated helper

This commit is contained in:
Matt Leong 2021-10-20 15:22:40 -07:00
parent 1d90b8deb5
commit 97e809d60f

View file

@ -32,10 +32,6 @@ local check_width_and_git_and_buffer = function()
return condition.check_git_workspace() and condition.buffer_not_empty()
end
local check_git_and_width = function()
return condition.buffer_not_empty() and condition.hide_in_width()
end
local check_buffer_and_width = function()
return condition.buffer_not_empty() and condition.hide_in_width()
end
@ -332,14 +328,14 @@ gls.right = {
{
GitBranchRightBracket = {
provider = BracketProvider(icons.arrow_left_filled, true),
condition = check_git_and_width,
condition = check_buffer_and_width,
highlight = 'GalaxyViModeNestedInv',
},
},
{
GitRoot = {
provider = utils.get_git_root,
condition = check_git_and_width,
condition = check_buffer_and_width,
icon = ' ' .. icons.file .. ' ',
highlight = 'GalaxyViModeInv',
},