Replies: 1 comment
-
Disabling TreeSitter for those files gave a great performance boost .. looking so much better now. I might have missed this part but anyway now it's looking good. Finally I can open / navigate those files without going insane. I didn't even disabled TS completely, disabling "indent" and "illuminate" already did the trick:
Still I think would be nice to have a way to not attach the LSP servers for some files .. but for this use case the TS disabled already helped a lot. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Found couple similar discussions on other forums but didn't enjoy the solutions so far where they tend to run a detach or LspStop when a big file is detected, for example a webpack JS file.
IMO would be better to do it differently, not attaching the LSP at all when a big file is detected would be nice.
For example:
After running webpack and compressing tons of JS file in a single file, this "bundle.js" file now has a single and huuuge line. In my tiny little App this line has 71k columns. Nvim struggles really hard to simply read this file.
Also, no one is going to actually edit or do anything with this kind of file so it feels a waste of Processing power to attach the LSP servers there.
ps:
Any suggestion?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions