refactor: add comments & update type anotation

This commit is contained in:
Smirnov Olexander 2022-06-22 14:42:14 +03:00
parent c1de269ef4
commit 250d4de718
7 changed files with 14 additions and 6 deletions

View file

@ -1,6 +1,7 @@
local Job = require "plenary.job"
local ts_utils = require "gopher._utils.ts"
---@return string
local function get_struct()
local ns = ts_utils.get_struct_node_at_pos(unpack(vim.api.nvim_win_get_cursor(0)))
if ns == nil then
@ -68,7 +69,4 @@ return function(...)
local pos = vim.fn.getcurpos()[2]
table.insert(res_data, 1, "")
vim.fn.append(pos, res_data)
-- table.insert(res_data, 1, "")
-- vim.fn.append(vim.fn.getcurpos()[2], res_data)
end