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

Optionally highlight all keywords with same highlight group #32

Open
dkearns opened this issue Dec 6, 2021 · 2 comments
Open

Optionally highlight all keywords with same highlight group #32

dkearns opened this issue Dec 6, 2021 · 2 comments

Comments

@dkearns
Copy link
Collaborator

dkearns commented Dec 6, 2021

Would a patch to optionally allow for highlighting all keywords (probably outside of types and literals) be accepted?

One of the problems with so many context dependent keywords is that they sometimes get highlighted with the group appropriate for one of their alternate uses. While that should obviously be fixed where possible it's less of a practical problem for users who are happy having less granular highlighting of keywords.

Some users, such as myself, also just prefer less granular highlighting of keywords in general.

Anyone can, of course, with a little bit of work configure this locally for themselves but I thought it might be worth adding a config variable that provides it as a feature.

@nickspoons
Copy link
Owner

Which keywords are you thinking of?

I don't have any problem with this, although I can't help but think that variables in vim runtime files have pretty poor discoverability - in practice it will probably only be you using it. And possibly me 😄

@nickspoons
Copy link
Owner

Quite a lot of these could be either put behind a variable, or removed and only highlighted contextually:

https://github.com/nickspoons/vim-cs/blob/master/syntax/cs.vim#L33-L38

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

2 participants