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

Fix file navigation delay in Ruby caused by ts indent #1164

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jrupinski
Copy link

@jrupinski jrupinski commented Sep 26, 2024

Related to / Fixes issue #1141.

Caused by additional_vim_regex_highlighting = { 'ruby' } line for Ruby in kickstart ts config that was introduced in this commit .

The problem this solved at the time seems redundant now (most likely fixed upstream in treesitter), and now introduces a small delay when navigating in files instead.

I reverted the commit - restoring default ts indenting for it, in turn making config simpler.
Edit: Only ts regex highlighting was removed to avoid regressions - thanks @ChillerDragon.

@DanWlker
Copy link

DanWlker commented Sep 26, 2024

Do we need to set additional_vim_regex_highlighting to false?

(Edit: nvm I checked the default value is false)

@ChillerDragon
Copy link
Contributor

Does this cause a regression of #747?

@jrupinski
Copy link
Author

jrupinski commented Sep 30, 2024

@ChillerDragon I was not aware of this - it does indeed. I pushed a change to disable ts indenting for Ruby again to fix this regression. Thanks!

Removal of additional_vim_regex_highlighting = { 'ruby' } does not seem to regress anything AFAIK, and doesn't cause other indent issues like this one: nvim-treesitter/nvim-treesitter#6114

@ChillerDragon
Copy link
Contributor

nice thanks

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.

3 participants