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
perf(treesitter): disable in big files #3268
perf(treesitter): disable in big files #3268
Conversation
096b2b9
to
2ac90b5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's still slightly slow to move the cursor the very first time, but the difference is massive. Thanks!
Should I change the base branch to master? |
Co-authored-by: kylo252 <59826753+kylo252@users.noreply.github.com>
Co-authored-by: kylo252 <59826753+kylo252@users.noreply.github.com>
495c02d
to
d810cdd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🚀
* upstream/master: perf(treesitter): disable in big files (LunarVim#3268) fix(breadcrumbs) Performance issue, change CursorMoved event to CursorHoldI (LunarVim#3357) chore: bump plugins version (LunarVim#3368) fix(alpha): make startify sections always appear (LunarVim#3371) fix(lsp): only launch installed servers (LunarVim#3366) fix(defaults): don't use smartindent (LunarVim#3363) fix: statusline and breadcrumbs hls reload with config reload (LunarVim#3376) refactor(installer): skip unstable headless update (LunarVim#3338) chore(plugins): bump plugins version (LunarVim#3364) chore: bump plugins version (LunarVim#3276)
Description
Disables treesitter in files larger than 1MB
fixes #3149
How Has This Been Tested?
Opened these files: canada.json, 100MB sql file compressed using 7zip and disguised as txt