aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/treesitter/languagetree.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-05-02 15:57:21 +0200
committerJustin M. Keyes <justinkz@gmail.com>2024-05-15 23:19:26 +0200
commit01b6bff7e9bc751be20ce7bb68e7ebe3037441de (patch)
treee4ce03135ae778fc846af197d53862f1ad7f68ae /runtime/lua/vim/treesitter/languagetree.lua
parentcdd87222c86c5b2274a13d36f23de0637462e317 (diff)
downloadrneovim-01b6bff7e9bc751be20ce7bb68e7ebe3037441de.tar.gz
rneovim-01b6bff7e9bc751be20ce7bb68e7ebe3037441de.tar.bz2
rneovim-01b6bff7e9bc751be20ce7bb68e7ebe3037441de.zip
docs: news
Set dev_xx.txt help files to use "flow" layout.
Diffstat (limited to 'runtime/lua/vim/treesitter/languagetree.lua')
-rw-r--r--runtime/lua/vim/treesitter/languagetree.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/lua/vim/treesitter/languagetree.lua b/runtime/lua/vim/treesitter/languagetree.lua
index e618f29f8f..270d869e43 100644
--- a/runtime/lua/vim/treesitter/languagetree.lua
+++ b/runtime/lua/vim/treesitter/languagetree.lua
@@ -225,7 +225,10 @@ function LanguageTree:_log(...)
self._logger('nvim', table.concat(msg, ' '))
end
---- Invalidates this parser and all its children
+--- Invalidates this parser and its children.
+---
+--- Should only be called when the tracked state of the LanguageTree is not valid against the parse
+--- tree in treesitter. Doesn't clear filesystem cache. Called often, so needs to be fast.
---@param reload boolean|nil
function LanguageTree:invalidate(reload)
self._valid = false