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