Closed 231tr0n closed 3 weeks ago
They should be highlighted as bold with "normal" foreground. If this is with enabled tree-sitter highlighting (which looks like it), then these words are highlighted with @keyword
highlight group. It links to Keyword
, which links to Statement
which is bold with normal foreground.
Does executing :Inspect
on local
(or any other word which you think is not highlighted) show @keyword.lua links to Statement
)?
If yes, what does :hi Statement
show? It should contain something like cterm=bold gui=bold
.
If yes, then it is probably because bold font is configured to be the same as the normal font. 'mini.hues' relies on bold attribute quite a lot, so it is better to have it set up if you want to use 'mini.hues'.
They should be highlighted as bold with "normal" foreground. If this is with enabled tree-sitter highlighting (which looks like it), then these words are highlighted with
@keyword
highlight group. It links toKeyword
, which links toStatement
which is bold with normal foreground.Does executing
:Inspect
onlocal
(or any other word which you think is not highlighted) show@keyword.lua links to Statement
)? If yes, what does:hi Statement
show? It should contain something likecterm=bold gui=bold
. If yes, then it is probably because bold font is configured to be the same as the normal font. 'mini.hues' relies on bold attribute quite a lot, so it is better to have it set up if you want to use 'mini.hues'.
Your are right ok so the differentiation is bold. But cant we just use some color to highlight these. Is that possible in any way with mini.hues @echasnovski
But cant we just use some color to highlight these.
The default will stay bold. This adds an extra way to differentiate words without using new color.
Is that possible in any way with mini.hues
Of course. You can tweak any highlight group after 'mini.hues' defines highlight groups. To do that, add vim.api.nvim_set_hl()
call after loading particular color scheme or executing require('mini.hues').setup()
.
In this particular case, calling vim.api.nvim_set_hl(0, 'Keyword', { fg = '#FF0000' })
will redefine keyword highlighting.
Contributing guidelines
Module(s)
mini.hues
Description
mini.hues is not highlighting keywords like
local
andfunction
in lua.Neovim version
NVIM v0.11.0-dev-632+g33464189b
Steps to reproduce
colorscheme randomhue
local
andfunction
keyowords are not highlighted.Expected behavior
These keywords to be highlighted.
Actual behavior
These keywords are not highlighted.