nvim-treesitter-textobjects icon indicating copy to clipboard operation
nvim-treesitter-textobjects copied to clipboard

Disable with a function like for highlight

Open ilan-schemoul opened this issue 8 months ago • 2 comments
trafficstars

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 avatar Mar 06 '25 09:03 ilan-schemoul

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

clason avatar Mar 06 '25 09:03 clason

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

ilan-schemoul avatar Mar 07 '25 09:03 ilan-schemoul