import deps at top of file, rename module

This commit is contained in:
Smirnov Oleksandr 2023-02-07 16:40:06 +02:00
parent 7ca1c039fe
commit c8adec2880
3 changed files with 13 additions and 16 deletions

View file

@ -1,9 +1,10 @@
local c = require("gopher.config").config.commands
local Job = require "plenary.job"
local ts_utils = require "gopher._utils.ts"
local u = require "gopher._utils"
---@return string
local function get_struct()
local ts_utils = require "gopher._utils.ts"
local ns = ts_utils.get_struct_node_at_pos(unpack(vim.api.nvim_win_get_cursor(0)))
if ns == nil then
u.notify("put cursor on a struct or specify a receiver", "info")
@ -19,9 +20,6 @@ local function get_struct()
end
return function(...)
local c = require("gopher.config").config.commands
local Job = require "plenary.job"
local args = { ... }
local iface, recv_name = "", ""
local recv = get_struct()