diff options
author | Riley Bruins <ribru17@hotmail.com> | 2024-12-18 10:48:33 -0800 |
---|---|---|
committer | Riley Bruins <ribru17@hotmail.com> | 2025-01-12 08:10:47 -0800 |
commit | 45e606b1fddbfeee8fe28385b5371ca6f2fba71b (patch) | |
tree | 16c8099e39b6eb7daae6334274e0deb3b02c3c9d /runtime/doc/news.txt | |
parent | 3fdc4302415972eb5d98ba832372236be3d22572 (diff) | |
download | rneovim-45e606b1fddbfeee8fe28385b5371ca6f2fba71b.tar.gz rneovim-45e606b1fddbfeee8fe28385b5371ca6f2fba71b.tar.bz2 rneovim-45e606b1fddbfeee8fe28385b5371ca6f2fba71b.zip |
feat(treesitter): async parsing
**Problem:** Parsing can be slow for large files, and it is a blocking
operation which can be disruptive and annoying.
**Solution:** Provide a function for asynchronous parsing, which accepts
a callback to be run after parsing completes.
Co-authored-by: Lewis Russell <lewis6991@gmail.com>
Co-authored-by: Luuk van Baal <luukvbaal@gmail.com>
Co-authored-by: VanaIgr <vanaigranov@gmail.com>
Diffstat (limited to 'runtime/doc/news.txt')
-rw-r--r-- | runtime/doc/news.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index 4f4bfe9ecc..96f0ec1aa7 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -297,6 +297,8 @@ PERFORMANCE • Strong |treesitter-query| caching makes repeat |vim.treesitter.query.get()| and |vim.treesitter.query.parse()| calls significantly faster for large queries. +• Treesitter highlighting is now asynchronous. To force synchronous parsing, + use `vim.g._ts_force_sync_parsing = true`. PLUGINS @@ -339,6 +341,8 @@ TREESITTER • New |TSNode:child_with_descendant()|, which is nearly identical to |TSNode:child_containing_descendant()| except that it can return the descendant itself. +• |LanguageTree:parse()| optionally supports asynchronous invocation, which is + activated by passing the `on_parse` callback parameter. TUI |