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

@ -41,7 +41,7 @@ local impl = {}
---@return string
---@private
local function get_struct()
local ns = ts_utils.get_struct_node_at_pos(unpack(vim.api.nvim_win_get_cursor(0)))
local ns = ts_utils.get_struct_under_cursor(unpack(vim.api.nvim_win_get_cursor(0)))
if ns == nil then
u.notify "put cursor on a struct or specify a receiver"
return ""