Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YAML not working propoerly #14

Closed
ghost opened this issue Jun 14, 2021 · 2 comments
Closed

YAML not working propoerly #14

ghost opened this issue Jun 14, 2021 · 2 comments

Comments

@ghost
Copy link

ghost commented Jun 14, 2021

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
Copy link
Owner

shaunsingh commented Jun 14, 2021

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
Copy link
Author

ghost commented Jun 15, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant