refactor(utils): move import into functions

This commit is contained in:
Smirnov Oleksandr 2022-11-13 14:21:32 +02:00
parent eb927bc19b
commit ebf697b80a
2 changed files with 10 additions and 8 deletions

View file

@ -1,11 +1,11 @@
local Job = require "plenary.job"
local c = require("gopher.config").config.commands
local u = require "gopher._utils"
---Run any go commands like `go generate`, `go get`, `go mod`
---@param cmd string
---@param ... string|string[]
return function(cmd, ...)
local Job = require "plenary.job"
local c = require("gopher.config").config.commands
local u = require "gopher._utils"
local args = { ... }
if #args == 0 then
u.notify("please provice any arguments", "error")