fix(gotests): use new api

This commit is contained in:
Oleksandr Smirnov 2025-03-18 21:47:44 +02:00
parent 59a0e961c4
commit 3642c247e5
No known key found for this signature in database
5 changed files with 72 additions and 38 deletions

View file

@ -15,7 +15,7 @@ local function generate(row, col)
return comment, ns
end
ns = ts_utils.get_struct_node_at_pos(row, col, nil)
ns = ts_utils.get_struct_under_cursor(row, col, nil)
if ns ~= nil then
comment = "// " .. ns.name .. " " .. ns.type .. " "
return comment, ns