shaunsingh / nord.nvim

Neovim theme based off of the Nord Color Palette, written in lua with tree sitter support
GNU General Public License v2.0
844 stars 110 forks source link

YAML not working propoerly #14

Closed ghost closed 3 years ago

ghost commented 3 years ago

After some debugging, I found that the current theme does not work on YAML files.

Using the normal nord (no treesitter) theme: screenshop1

Using the normal nord (no treesitter) theme:

With nord.vim: screenshop2

Am I doing something wrong there?

shaunsingh commented 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.

ghost commented 3 years ago

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
" -▲-