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 = {
|
local urls = {
|
||||||
gomodifytags = "github.com/fatih/gomodifytags",
|
gomodifytags = "github.com/fatih/gomodifytags",
|
||||||
impl = "github.com/josharian/impl",
|
impl = "github.com/josharian/impl",
|
||||||
|
|
@ -10,6 +8,9 @@ local urls = {
|
||||||
|
|
||||||
---@param pkg string
|
---@param pkg string
|
||||||
local function install(pkg)
|
local function install(pkg)
|
||||||
|
local Job = require "plenary.job"
|
||||||
|
local u = require "gopher._utils"
|
||||||
|
|
||||||
local url = urls[pkg] .. "@latest"
|
local url = urls[pkg] .. "@latest"
|
||||||
|
|
||||||
Job:new({
|
Job:new({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue