refactor(installer): move requires inside of function
This commit is contained in:
parent
46bf3cdd1e
commit
8b751a2fbf
1 changed files with 3 additions and 2 deletions
|
|
@ -1,5 +1,3 @@
|
|||
local Job = require "plenary.job"
|
||||
local u = require "gopher._utils"
|
||||
local urls = {
|
||||
gomodifytags = "github.com/fatih/gomodifytags",
|
||||
impl = "github.com/josharian/impl",
|
||||
|
|
@ -10,6 +8,9 @@ local urls = {
|
|||
|
||||
---@param pkg string
|
||||
local function install(pkg)
|
||||
local Job = require "plenary.job"
|
||||
local u = require "gopher._utils"
|
||||
|
||||
local url = urls[pkg] .. "@latest"
|
||||
|
||||
Job:new({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue