aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/treesitter/languagetree.lua
diff options
context:
space:
mode:
authorluukvbaal <luukvbaal@gmail.com>2024-11-17 01:25:10 +0100
committerGitHub <noreply@github.com>2024-11-16 16:25:10 -0800
commitcdc9baeaf89eb09f08427a09e3a0f86d56dcc812 (patch)
treeaafedcc87424f06d2890665f002ec6ae7c4380f2 /runtime/lua/vim/treesitter/languagetree.lua
parent9c718bc2bce53b5be45061bff940f99e50c8bfcb (diff)
downloadrneovim-cdc9baeaf89eb09f08427a09e3a0f86d56dcc812.tar.gz
rneovim-cdc9baeaf89eb09f08427a09e3a0f86d56dcc812.tar.bz2
rneovim-cdc9baeaf89eb09f08427a09e3a0f86d56dcc812.zip
fix(treesitter): remove redundant on_bytes callback #31041
Problem: Treesitter highlighter implements an on_bytes callback that just re-marks a buffer range for redraw. The edit that prompted the callback will already have done that. Solution: Remove redundant on_bytes callback from the treesitter highlighter module.
Diffstat (limited to 'runtime/lua/vim/treesitter/languagetree.lua')
-rw-r--r--runtime/lua/vim/treesitter/languagetree.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/treesitter/languagetree.lua b/runtime/lua/vim/treesitter/languagetree.lua
index fd68c2b910..4b42164dc8 100644
--- a/runtime/lua/vim/treesitter/languagetree.lua
+++ b/runtime/lua/vim/treesitter/languagetree.lua
@@ -1037,7 +1037,7 @@ end
--- Registers callbacks for the [LanguageTree].
---@param cbs table<TSCallbackNameOn,function> An [nvim_buf_attach()]-like table argument with the following handlers:
---- - `on_bytes` : see [nvim_buf_attach()], but this will be called _after_ the parsers callback.
+--- - `on_bytes` : see [nvim_buf_attach()].
--- - `on_changedtree` : a callback that will be called every time the tree has syntactical changes.
--- It will be passed two arguments: a table of the ranges (as node ranges) that
--- changed and the changed tree.