2 files changed,
10 insertions(+),
0 deletions(-)
Author:
Smirnov Oleksandr
ss2316544@gmail.com
Committed at:
2022-06-24 15:28:52 +0300
Parent:
0b415c3
jump to
| M | lua/gopher/goget.lua |
| M | lua/gopher/gomod.lua |
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