-
Notifications
You must be signed in to change notification settings - Fork 197
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
csharp: context shows attributes instead of class/method names, obscuring context detail #160
Comments
I looked in the code and found a reference to require('treesitter-context').setup({
exclude_patterns = {
cs = {
'attribute_list',
'attribute',
},
},
}) |
It's probably happening because treesitter nests the attributes under the
so I'm doubtful that this is going to be trivial now, unless there's some way I can exclude |
There already is the |
#198 C sharp is no longer supported and the information in this thread is no longer useful. Will happily accept a PR that adds a query for C sharp. |
In an example C# source file, i have:
But observe how the context looks like:
I would prefer if it showed like:
I assume I should be able to configure it to ignore attributes in
cs
filetype buffers, but the readme doesn't go into enough detail for me to work out how to exclude things like that.The text was updated successfully, but these errors were encountered: