File tree 1 file changed +1
-2
lines changed
1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,6 @@ compare.scopes = setmetatable({
175
175
if ok then
176
176
local win , buf = vim .api .nvim_get_current_win (), vim .api .nvim_get_current_buf ()
177
177
local cursor_row = vim .api .nvim_win_get_cursor (win )[1 ] - 1
178
- local ts_utils = require (' nvim-treesitter.ts_utils' )
179
178
180
179
-- Cursor scope.
181
180
local cursor_scope = nil
@@ -205,7 +204,7 @@ compare.scopes = setmetatable({
205
204
for _ , definition in pairs (definitions ) do
206
205
if s <= definition .node :start () and definition .node :end_ () <= e then
207
206
if scope :id () == locals .containing_scope (definition .node , buf ):id () then
208
- local text = ts_utils .get_node_text (definition .node )[1 ]
207
+ local text = vim . treesitter . query .get_node_text (definition .node )[1 ]
209
208
if not self .scopes_map [text ] then
210
209
self .scopes_map [text ] = depth
211
210
end
You can’t perform that action at this time.
0 commit comments