Re:Neovim 0.8 Released
by BaculumMeumEst on Friday September 30, 2022 @02:20PM
(#33038578)
Treesitter is slower to parse a file initially but quicker at handling incremental changes. You probably won’t notice unless you open a huge source file.
Re:Neovim 0.8 Released
by robenkleene on Friday September 30, 2022 @02:28PM
(#33038707)
Never used Treesitter, but I'd assume all this happens async? I.e., does Neovim actually block text editing untill the parsing is finished or do you just see unstyled content until it finishes?
(I'd just be surprised if anything new worked that way in 2022, let alone something built for async like Neovim.)
Re:Neovim 0.8 Released
by BaculumMeumEst on Friday September 30, 2022 @02:32PM
(#33038760)
It blocks text editing until it finishes.
I certainly haven’t experienced any slowness with opening files with Neovim with Treesitter. It certainly enables much better syntax highlighting, among other things [1]. If anything, it’s faster than the regex-based syntax highlighting that Vim traditionally used.
CoC is a 3rd party LSP plugin that works with Vim and Neovim.
[1]: https://neovim.io/doc/treesitter/