mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-22 21:30:06 -04:00
refactor(all): language tree adaption (#1105)
This commit is contained in:
parent
0df7c4aa39
commit
6863f79118
9 changed files with 198 additions and 61 deletions
|
|
@ -584,6 +584,8 @@ function M.get_parser(bufnr, lang)
|
|||
end
|
||||
end
|
||||
|
||||
-- @deprecated This is only kept for legacy purposes.
|
||||
-- All root nodes should be accounted for.
|
||||
function M.get_tree_root(bufnr)
|
||||
local bufnr = bufnr or api.nvim_get_current_buf()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue