the only reason I change temporarily to neovim is tree-sitter syntax highlight.
Can there be a incremental syntax highlight there, so that I can see updated highlight in time?
thx so much.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
I think this is part of the larger proposal discussed at #9087
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
I'm editing typescript files, and there are currently about 10 files. one file if of code lines about 600. and my default color theme is dracula.
When I entered vim, sometimes head lines are not highlighted, e.g. the function names; and if i directly go to end of file pressing "G", the function names, keywords are for sure not highlighted.
I manually source $MYVIMRC, then the functions are highlighted; then scroll down, upcoming functions are highlighted too; but if I directly goto bottom of file, the functions are not highlighted.
I did similar thing for "yolo v5" repo, and went to "train.py" which also has about 600 lines' code, everything is good.
so it seems that this rendering lag exists in typescript?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
I believe treesitter parses the file from the start, thus that
would explain it.
Treesitter receives text edit events and is able to incrementally parse the tree. It only parses the full file on initial load.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
closing as dup of #9087
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
Closed #12508 as not planned.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.