aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-08-28 17:42:26 +0200
committersrdusr <trevorgray@srdusr.com>2023-08-28 17:42:26 +0200
commit12dea167448ada8826da2e7ae4c159bf32a9bff4 (patch)
tree4ebe698336ec3d2c083ec6d4ce01228793d831fb
parent272ec4292aa5c4d9e019fa2aad91c5597f849b14 (diff)
downloaddotfiles-12dea167448ada8826da2e7ae4c159bf32a9bff4.tar.gz
dotfiles-12dea167448ada8826da2e7ae4c159bf32a9bff4.zip
Changed git branch color to white
-rw-r--r--lua/plugins/heirline.lua28
1 files changed, 21 insertions, 7 deletions
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