From fabdcc5fb374e9d99c528588e3bfed604a3582a3 Mon Sep 17 00:00:00 2001 From: Oleksandr Smirnov Date: Thu, 6 Nov 2025 15:02:50 +0200 Subject: [PATCH] fix: type annotation --- lua/gopher/iferr.lua | 2 +- plugin/gopher.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/gopher/iferr.lua b/lua/gopher/iferr.lua index 78d060f..3da4132 100644 --- a/lua/gopher/iferr.lua +++ b/lua/gopher/iferr.lua @@ -42,7 +42,7 @@ function iferr.iferr() vim.fn.append(pos, u.remove_empty_lines(vim.split(rs.stdout, "\n"))) vim.cmd [[silent normal! j=2j]] - vim.fn.setpos(".", pos) + vim.fn.setpos(".", pos --[[@as integer[] ]]) end return iferr diff --git a/plugin/gopher.lua b/plugin/gopher.lua index d3019ef..b2ccc1f 100644 --- a/plugin/gopher.lua +++ b/plugin/gopher.lua @@ -98,5 +98,5 @@ cmd("GoWork", function(opts) end, "*") cmd("GoGenerate", function(opts) - require("gopher").generate(opts.fargs or "") + require("gopher").generate(opts.fargs or { "" }) end, "?")