From 12dea167448ada8826da2e7ae4c159bf32a9bff4 Mon Sep 17 00:00:00 2001 From: srdusr Date: Mon, 28 Aug 2023 17:42:26 +0200 Subject: Changed git branch color to white --- lua/plugins/heirline.lua | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) (limited to 'lua/plugins') diff --git a/lua/plugins/heirline.lua b/lua/plugins/heirline.lua index 06867df..1951617 100644 --- a/lua/plugins/heirline.lua +++ b/lua/plugins/heirline.lua @@ -271,18 +271,32 @@ local Git = { self.status_dict = vim.b.gitsigns_status_dict self.has_changes = self.status_dict.added ~= 0 or self.status_dict.removed ~= 0 or self.status_dict.changed ~= 0 end, - --hl = { fg = "orange" }, - --hl = { fg = colors.orange, bg = colors.bg }, + --{ + -- -- git branch name + -- provider = function(self) + -- --return ' ' .. self.status_dict.head + -- return '  ' .. self.status_dict.head + -- end, + -- --hl = { bold = true }, + -- hl = { fg = colors.git.active, bold = true, bg = colors.bg }, + --}, + -- You could handle delimiters, icons and counts similar to Diagnostics + { + -- git branch icon + provider = function() + return '  ' + end, + hl = { fg = colors.git.active, bg = colors.bg }, + }, + { -- git branch name provider = function(self) - --return ' ' .. self.status_dict.head - return '  ' .. self.status_dict.head + return self.status_dict.head end, - --hl = { bold = true }, - hl = { fg = colors.git.active, bold = true, bg = colors.bg }, + hl = { fg = colors.white, bg = colors.bg }, }, - -- You could handle delimiters, icons and counts similar to Diagnostics + { condition = function(self) return self.has_changes -- cgit v1.2.3