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

feature: more colour please #28

Open
ghost opened this issue Jun 15, 2021 · 2 comments
Open

feature: more colour please #28

ghost opened this issue Jun 15, 2021 · 2 comments

Comments

@ghost
Copy link

ghost commented Jun 15, 2021

While using tree-sitter and YAMl, I opened this issue since I thought my theme (Nord) was not correct. Turns out it is, the tree-sitter configuration just has fewer colours than the vanilla one.

Could we please have more colours?

I am happy to test things if you want me to.

@solidassassin
Copy link

Tree-sitter is not responsible for the displayed color, TSField group is used to color the keys in yaml (which is accurate in my opinion). The problem here is that your theme provider chose a "boring" color for that certain field, this was probably done because dull colors look better for js objects or lua tables (keys use the same group). You can just modify the TSField color with an autocommand, here's what comes to mind for me:

augroup theming
    au!
    au BufEnter *.{yaml,yml} :hi TSField guifg=a_better_color
    au BufEnter *{.yaml,.yml}\@<! :hi TSField guifg=original_color
augroup END

@esn89
Copy link

esn89 commented Sep 10, 2021

I am having the same problem where most of the text is just plain ol' white with coloured colons.

I have tried to do it like this as a test:

:highlight link yamlKey CocListYellowCyan

But it returns with an error like so: E414: group has settings, highlight link ignored. Is this by design or what?

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

Successfully merging a pull request may close this issue.

2 participants