Skip to content

Commit

Permalink
feat(shared)!: stop reading metadata from #make-range!
Browse files Browse the repository at this point in the history
  • Loading branch information
ofseed committed Sep 7, 2024
1 parent a34d063 commit 5c6db01
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions lua/nvim-treesitter-textobjects/shared.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
local ts = vim.treesitter

-- luacheck: push ignore 631
---@alias TSTextObjects.Metadata {range: {[1]: number, [2]: number, [3]: number, [4]: number, [5]: number, [6]: number, [7]: string}}
-- luacheck: pop

local M = {}

---@param object any
Expand Down Expand Up @@ -109,20 +105,6 @@ local get_query_matches = memoize(function(bufnr, query_group, root, root_lang)
end
end

if metadata.range and metadata.range[7] then
---@cast metadata TSTextObjects.Metadata
local query_name = metadata.range[7]
local path = vim.split(query_name, "%.")
insert_to_path(prepared_match, path, {
metadata.range[1],
metadata.range[2],
metadata.range[3],
metadata.range[4],
metadata.range[5],
metadata.range[6],
})
end

matches[#matches + 1] = prepared_match
end
end
Expand Down

0 comments on commit 5c6db01

Please sign in to comment.