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

Fixes for various problems relating to treesitter interactions and upstream changes #300

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

ahorine
Copy link
Contributor

@ahorine ahorine commented Feb 1, 2024

This should fix #299 as well.

When trying to view treesitter symbols (e.g. via :TSymbols) no results would appear in the side panel due to the treesitter nodes now being located in a subtable in the query results. Fixed via drilling down into the subtable ("local") before processing the node types.

When using the (deprecated) reference request - default <leader>gr - there would be errors regarding nil references due to some undefined variables being used as parameters. Simply defining them wasn't sufficient either, as further down the callstack (inside treesitters parser code) there's functions that aren't allowed to be run inside the async loop routines. I ended up taking all of that out and just calling warmup_treesitter directly, as the async_ref version of this command should be used anyway.

I also quickly went through and replaced the rest of the direct references to vim.loop with vim.uv (if available) that seemed to have been missed the first time around.

viewing references (deprecated method), remaining vim.loop -> vim.uv
conversion
@ray-x ray-x merged commit d02d4c1 into ray-x:master Feb 2, 2024
3 checks passed
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 this pull request may close these issues.

Finding references not working possibly due to recent changes in nvim-treesitter
2 participants