aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-04-29 23:09:54 +0200
committersrdusr <trevorgray@srdusr.com>2023-04-29 23:09:54 +0200
commita1e99eb139bdcd6be980b3ba900118ca9be653f2 (patch)
tree9717c4f98e9d6823d31bf88536d68e59c38a3ca7 /lua/plugins
parent4aebc3b5bbb148391473baa5def2d4bfb204dd6c (diff)
downloaddotfiles-a1e99eb139bdcd6be980b3ba900118ca9be653f2.tar.gz
dotfiles-a1e99eb139bdcd6be980b3ba900118ca9be653f2.zip
Various changes to accommodate changing colorschemes and made statusline transparent in the middle
Diffstat (limited to 'lua/plugins')
-rw-r--r--lua/plugins/heirline.lua46
1 files changed, 30 insertions, 16 deletions
diff --git a/lua/plugins/heirline.lua b/lua/plugins/heirline.lua
index 6c05e28..1e2f391 100644
--- a/lua/plugins/heirline.lua
+++ b/lua/plugins/heirline.lua
@@ -5,6 +5,7 @@ local colors = {
--bg = "#23232e",
bg = nil,
nobg = nil,
+ transparency ="NONE",
white = "#f8f8f2",
black = "#000000",
darkgray = "#23232e",
@@ -94,10 +95,15 @@ local ViMode = {
provider = function(self)
return " %2(" .. self.mode_names[self.mode] .. "%) "
end,
- hl = function(self)
- local color = self:mode_color()
- return { fg = color, bold = true }
- end,
+ hl = function(self) return { fg = "darkgray", bg = self.mode_color, bold = true } end,
+ --hl = function(self) return { fg = self.mode_color, bg = "bg" } end,
+-- hl = function(self)
+-- local color = self.mode:sub(1, 1) -- get only the first mode character
+-- --return { fg = self.mode_colors[mode], bold = true, }
+-- --local color = self:mode_color()
+-- return { fg = color, bold = true }
+-- return { fg = colors.black, bg = color, bold = true }
+-- end,
update = {
"ModeChanged",
},
@@ -729,6 +735,12 @@ RightSpace3 = utils.surround(
{ RightSpace3, hl = { fg = colors.darkgray, force = true } }
)
+RightSpace4 = utils.surround(
+ { "█", "" },
+ utils.get_highlight("statusline").bg,
+ { RightSpace4, hl = { fg = colors.transparency, force = true } }
+)
+
LSPActive = utils.surround({ "", "" }, function(self)
return self:mode_color()
end, { Space, LSPActive, hl = { bg = colors.darkgray, force = true } })
@@ -745,23 +757,25 @@ local left = {
-- return { fg = self.mode_colors[self.mode], bg = utils.get_highlight("statusline").bg, bold = true, }
-- end,
--},
- { LeftSpace, hl = { bg = utils.get_highlight("statusline").bg, force = true } },
- { FileNameBlock, hl = { bg = utils.get_highlight("statusline").bg, force = true } },
- { Space, hl = { bg = utils.get_highlight("statusline").bg, force = true } },
- { Git, hl = { bg = utils.get_highlight("statusline").bg, force = true } },
+ --{ LeftSpace, hl = { bg = utils.get_highlight("statusline").bg, force = true } },
+ { LeftSpace, hl = { bg = colors.transparency, force = true } },
+ { FileNameBlock, hl = { bg = colors.transparency, force = true } },
+ { Space, hl = { bg = colors.transparency, force = true } },
+ { Git, hl = { bg = colors.transparency, force = true } },
}
local middle = {
- { Align, hl = { bg = utils.get_highlight("statusline").bg, force = true } },
+ { Align, hl = { bg = colors.transparency, force = true } },
--{ Navic, hl = { bg = utils.get_highlight("statusline").bg, force = true } },
- { DAPMessages, hl = { bg = utils.get_highlight("statusline").bg, force = true } },
- { Align, hl = { bg = utils.get_highlight("statusline").bg, force = true } },
+ { DAPMessages, hl = { bg = colors.transparency, force = true } },
+ { Align, hl = { bg = colors.transparency, force = true } },
}
local right = {
- { Diagnostics, hl = { bg = utils.get_highlight("statusline").bg, force = true } },
- {
- RightSpace3,
- hl = { bg = colors.darkgray, force = true },
- },
+ { Diagnostics, hl = { bg = colors.transparency, force = true } },
+ { RightSep, hl = { fg = colors.darkgray, bg = colors.transparency, force = true } },
+ --{
+ -- RightSpace4,
+ -- hl = { bg = colors.darkgray, force = true },
+ --},
{ LSPActive, hl = { bg = colors.darkgray, force = true } },
{ RightSpace2, hl = { bg = colors.gray, force = true } },
{ FileInfoBlock, hl = { bg = colors.gray, force = true } },