mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
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.
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user