Open codewiz opened 1 year ago
By the way, I noticed lua operators are highlighted as keywords rather than operators, and I think it's due to this line
['@operator.lua'] = { fg = syn.keyword, style = stl.operators },
If that was intended to be syn.operator, I could send a PR.
By the way, I noticed lua operators are highlighted as keywords rather than operators, and I think it's due to this line
This was done on purpose because GitHub's syntax highlighting for Lua deviates from the norm and has "keyword-colored" operators (i.e. usually a reddish or coral color). In other words, currently GitHub uses their "keyword" color for operators when it comes to Lua.
In other words, currently GitHub uses their "keyword" color for operators when it comes to Lua.
Indeed! Then perhaps they have a bug? ;-)
Anyway, I solved it with this local workaround:
['@operator.lua'] = { fg = 'syntax.operator' },
In other words, currently GitHub uses their "keyword" color for operators when it comes to Lua.
Indeed! Then perhaps they have a bug? ;-)
Yeah, although it may be a style/design choice.
I override a few colors in the base palette of my theme:
palettes = { github_dark_high_contrast = { bg0 = '#202030', -- Brighten floats bg1 = '#000814', -- Bluish background bg2 = '#200818', -- Colorcolumn folds bg3 = '#001122', -- Cursor line bg4 = '#333333', -- Conceal fg3 = '#333366', -- LineNr, LspInlayHints sel1 = '#885511', -- IncSearch bg sel2 = '#cccc33', -- Search bg },
@codewiz These are the items/keys of the specs
table (e.g. bg0, bg1, ...). Did you mean to put them under palettes
like you did here?
I override a few colors in the base palette of my theme:
I expected these values to be directly usable like the originals:
However, none of my overrides works until I "re-export' them at the specs level:
I assumed it's a bug, but I might be misunderstanding the underlying design. None of the examples in the README covers exactly this case.
My full config is here: https://codewiz.org/pub/dotfiles/init.lua