-
Notifications
You must be signed in to change notification settings - Fork 42
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
Causing noticeable lag for large files #37
Comments
Could you provide sample file and your environment(hardware and software) |
Line of codes is also a useful information. |
From #46: Environment Let me know if I can provide any further information! |
I am running iTerm 2 on OSX, and it works fine here. |
On my ubuntu is ok too. |
It seems I've found the culprit: set cursorline For completeness, cursorline has colors (but it was lagging even without these colorings): highlight CursorLine term=none cterm=none ctermbg=0
highlight CursorLineNr cterm=none ctermbg=4 However lag only happens when both yajs and cursorline are enabled. Thanks for your efforts! |
I've ran into this issue with Neovim and disabling yajs.vim makes it work smoothly again. My init.vim is in my dotfiles repo and disabling cursorline doesn't work either. |
I have the same issue, using iTerm 2 with cursor line disabled. It happens on most of my files, and very noticeable lag on a 150 line "dense" file. I reverted back to pangloss/vim-javascript for now. |
@susu I just recently ran into this issue with "dense" files. Such as deep nested objects. After much playing around, I turned off cursorline and now it's smooth as butter. |
Since I don't have machine can have noticeable lag now. I will have some branches and need tester to switch to those branches to see is there any improve. |
In the meantime, I have a new job, with a faster laptop, and I cannot reproduce it anymore. CPU usage goes up to ~50%, but no lag. So I'm afraid I could not help. |
@susu Thank you anyway. |
@othree Sure, here it is: |
I'm also experiencing serious lag, loss of syntax highlighting when folding, or just oddly highlighted variables on more complex files. Usually, when JSX is involved, but not always. The lag is definitely the largest issue though. I'm also not setting Switching back to the More info for debugging:
I hope that's helpful. Would love to see this become the go to js syntax plug. |
I have been experiencing pretty serious lag on large JS files while using this plugin. I tried running with with just this plugin and no other plugins and it is making things, specifically moving up and down with j/k very laggy. Is there anything I can try to fix this, or anything I might not be thinking about here? Thanks!
The text was updated successfully, but these errors were encountered: