Open shackra opened 6 years ago
Not sure what I'm supposed to see in that video. Can you explain? Haven't tested, but I'm guessing you'll have problems with Aggressive-Indent
. rjsx
re-parses the entire buffer every time it needs to indent, so that's always going to cause slowdowns. Can you try setting (setq-local indent-line-function 'js-jsx-indent-line)
to see if that fixes things?
Not sure what I'm supposed to see in that video. Can you explain?
Sure, I meant to point the fraction of second when the text is written into the buffer and is all white and when fontify kicks in. I have had experience sometimes that slows down typing a lot. In the video test above Aggressive Indent was supposed to be off.
I will follow your recommendation and test again.
i'm having the issue with fontify as well. i don't have a video to show, but put simply, when i move my cursor and nearing a lot of jsx code (i.e. the html tags), it gets sluggish. i have had that problem with web mode as well, and it seemed rjsx does a better job.
anyway, wondering if @shackra is having that kind of problem too, or is it the common experience? i evaluated the statement @felipeochoa mentioned, but still sluggish. when i turned rjsx mode off, of course it was flying...
This is issue is due to this bug on LSP https://github.com/emacs-lsp/lsp-mode/issues/588
Do you use LSP?
I have test this in
js-jsx-mode
and is even worst.When writing code, fontify takes a fraction of a second per key press to kick in and sometimes when there is more lines of code Emacs freeze when fontify is happening.
Here is a video https://streamable.com/vkslf
This is what is turned on on my buffer at the time of recording: