fix(gotests): use new api
This commit is contained in:
parent
59a0e961c4
commit
3642c247e5
5 changed files with 72 additions and 38 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue