From 97e809d60f858ef5311c15a2d56377c3ca25e178 Mon Sep 17 00:00:00 2001 From: Matt Leong Date: Wed, 20 Oct 2021 15:22:40 -0700 Subject: [PATCH] chore(statusline): clean out deprecated helper --- lua/cosmic/core/statusline/init.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lua/cosmic/core/statusline/init.lua b/lua/cosmic/core/statusline/init.lua index 09e979c..78f97f6 100644 --- a/lua/cosmic/core/statusline/init.lua +++ b/lua/cosmic/core/statusline/init.lua @@ -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', },