From 76a113c2155cb61dba99baa765e535216cdbfa52 Mon Sep 17 00:00:00 2001 From: Bazaah Date: Sun, 11 Sep 2022 17:33:56 +0000 Subject: [PATCH] nvim/plug/lualine: slight fixes to settings - Enable toggleterm support (it now recognizes TT windows) - Use gitsigns for branch detection (faster than running external git commands) - Remove 'italic' from branch section highlights --- nvim/lua/psoxizsh/plugins/config/lualine.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvim/lua/psoxizsh/plugins/config/lualine.lua b/nvim/lua/psoxizsh/plugins/config/lualine.lua index 880fc27..7910001 100644 --- a/nvim/lua/psoxizsh/plugins/config/lualine.lua +++ b/nvim/lua/psoxizsh/plugins/config/lualine.lua @@ -23,7 +23,7 @@ return function() symbols = { modified = '|', readonly = '|', unnamed = '〜' }, color = file_color, } - local branch = { 'branch', icon = '', color = { gui = 'bold,italic' } } + local branch = { 'b:gitsigns_head', icon = '', color = { gui = 'bold' } } local diagnostics = { 'diagnostics', sources = { 'coc' }, update_in_insert = true } local diff = { 'diff', source = diff_source } @@ -58,7 +58,7 @@ return function() lualine_y = {}, lualine_z = {} }, - extensions = { 'fugitive', 'quickfix', 'man', 'fzf', 'neo-tree' } + extensions = { 'fugitive', 'quickfix', 'man', 'fzf', 'neo-tree', 'toggleterm' } } ll.setup(util.mconfig('config.lualine', defaults))