all repos

gopher.nvim @ 096bc8e7ee4c8c85c0c07d63f8d6c224c593800a

Minimalistic plugin for Go development
2 files changed, 10 insertions(+), 0 deletions(-)
feat: add help messages

feat(goget): add help message

feat(gomod): add help message
Author: Smirnov Oleksandr ss2316544@gmail.com
Committed at: 2022-06-24 15:28:52 +0300
Parent: 0b415c3
M lua/gopher/goget.lua

@@ -4,6 +4,11 @@

---run "go get" return function(...) local args = { ... } + if #args == 0 then + u.notify("please provide a package url to get", "error") + return + end + for i, arg in ipairs(args) do local m = string.match(arg, "^https://(.*)$") or string.match(arg, "^http://(.*)$") or arg table.remove(args, i)
M lua/gopher/gomod.lua

@@ -4,6 +4,11 @@

---run "go mod" return function(...) local args = { ... } + if #args == 0 then + u.notify("please provide any mod command", "error") + return + end + local cmd_args = vim.list_extend({ "mod" }, args) Job