-
Notifications
You must be signed in to change notification settings - Fork 17
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
Endwise does not work for bash/vim with nvim-ts-rainbow and nvim-treesitter-context enabled #14
Comments
This there any development on this? I just found out that in the above mentioned situations the following loop is never run, because no match is found by treesitter.
|
I looked into this a while back and found the issue was on treesitter's end, you can reproduce with a minimal config that only loads nvim-ts-rainbow (iirc) but I never had time to dig further and make an issue in the nvim-treesitter repo (or maybe core?). |
I found a new plugin that can endwise. |
The issue is not present for me with the all those plugins. Perhaps, it was already fixed? |
Perhaps, it's not actually an nvim-treesitter-endwise error but rather a nvim-treesitter bug. I'll try to reproduce later and maybe close the issue. |
Basically, it's very difficult to try to take advantage of treesitter while you're in the middle of your input. |
Describe the bug
When I have nvim-treesitter-endwise, nvim-treesitter-context and nvim-ts-rainbow enabled, then endwise does not work for the filetypes
sh
andvim
. It works for ruby and lua.I have traced down the behavior to this init.lua:
To Reproduce
Steps to reproduce the behavior with a minimal init.lua:
nvim-ts-rainbow
andnvim-treesitter-context
and repeat, endwise now works for all 4 supported filetypesExpected behavior
Endwise should work.
Screengrab
If applicable, add screengrabs which record any weird behaviour.
Additional context
neovim --version
:The text was updated successfully, but these errors were encountered: