Revert "refactor(treesitter): delegate region calculation to treesitter" (#22575)

Revert "refactor(treesitter): delegate region calculation to treesitter (#22553)"

This reverts commit 276b647fdb.
This commit is contained in:
Lewis Russell
2023-03-08 17:59:45 +00:00
committed by GitHub
parent 276b647fdb
commit b9f19d3e28
6 changed files with 186 additions and 320 deletions

View File

@@ -277,7 +277,6 @@ end
---@return (string[]|string|nil)
function M.get_node_text(node, source, opts)
opts = opts or {}
-- TODO(lewis6991): concat only works when source is number.
local concat = vim.F.if_nil(opts.concat, true)
local metadata = opts.metadata or {}