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() return condition.check_git_workspace() and condition.buffer_not_empty()
end end
local check_git_and_width = function()
return condition.buffer_not_empty() and condition.hide_in_width()
end
local check_buffer_and_width = function() local check_buffer_and_width = function()
return condition.buffer_not_empty() and condition.hide_in_width() return condition.buffer_not_empty() and condition.hide_in_width()
end end
@ -332,14 +328,14 @@ gls.right = {
{ {
GitBranchRightBracket = { GitBranchRightBracket = {
provider = BracketProvider(icons.arrow_left_filled, true), provider = BracketProvider(icons.arrow_left_filled, true),
condition = check_git_and_width, condition = check_buffer_and_width,
highlight = 'GalaxyViModeNestedInv', highlight = 'GalaxyViModeNestedInv',
}, },
}, },
{ {
GitRoot = { GitRoot = {
provider = utils.get_git_root, provider = utils.get_git_root,
condition = check_git_and_width, condition = check_buffer_and_width,
icon = ' ' .. icons.file .. ' ', icon = ' ' .. icons.file .. ' ',
highlight = 'GalaxyViModeInv', highlight = 'GalaxyViModeInv',
}, },