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

Disable with a function like for highlight #739

Open
ilan-schemoul opened this issue Mar 6, 2025 · 2 comments
Open

Disable with a function like for highlight #739

ilan-schemoul opened this issue Mar 6, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@ilan-schemoul
Copy link
Contributor

Is your feature request related to a problem? Please describe.
At work I work with files few hundreds line and other C files that are >10K. If I do a swap or select argument or whatever entire UX freeze during 20 seconds.

Describe the solution you'd like
I want like highlight pass a disable() function so I can check size of file to enable/disable

Describe alternatives you've considered
Fix the slowness.

@ilan-schemoul ilan-schemoul added the enhancement New feature or request label Mar 6, 2025
@clason
Copy link
Collaborator

clason commented Mar 6, 2025

Please test Neovim nightly. Performance issues with tree-sitter parsing are being actively worked on.

@ilan-schemoul
Copy link
Contributor Author

just tested it out with the most recent nighly NVIM v0.11.0-dev-1918+ge46f07b1d2 it still freeze on my 15K lines C file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants