Closed ghost closed 3 years ago
The theme is actually working as expected, its just that the treesitter parser for yaml isn't very colorful. You can open an issue at https://github.com/ikatyang/tree-sitter-yaml. If they don't respond and/or close your issue, then I'll be happy to make a language configuration for yaml so it looks a bit better
An alternative would be to uninstall the treesitter-yaml parser so that it falls back to the regex highlighting, which may not be as accurate but would look better.
Oh my god! That's … really not what I was expecting. Thank you, as always you are super helpful! In the first instance, I shall open an issue upstream and link this one.
In case anyone wanted to know more, here's my Lua config for tree sitter:
" Tree sitter.
" -▼-
:lua <<EOF
require'nvim-treesitter.configs'.setup {
ensure_installed = "maintained", -- one of "all", "maintained" (parsers with maintainers), or a list of languages
highlight = {
enable = true, -- false will disable the whole extension
disable = {"yaml", }, -- list of language that will be disabled
-- disable = {}, -- list of language that will be disabled
},
}
EOF
" -▲-
After some debugging, I found that the current theme does not work on YAML files.
Using the normal nord (no treesitter) theme:
Using the normal nord (no treesitter) theme:
With
nord.vim
:Am I doing something wrong there?