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 /src/nvim/options.lua | |
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 'src/nvim/options.lua')
-rw-r--r-- | src/nvim/options.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/options.lua b/src/nvim/options.lua index 863f875d9d..15a4e8ddc2 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -6520,8 +6520,8 @@ return { defaults = { if_true = 2000 }, desc = [=[ Time in milliseconds for redrawing the display. Applies to - 'hlsearch', 'inccommand', |:match| highlighting and syntax - highlighting. + 'hlsearch', 'inccommand', |:match| highlighting, syntax highlighting, + and async |LanguageTree:parse()|. When redrawing takes more than this many milliseconds no further matches will be highlighted. For syntax highlighting the time applies per window. When over the |