blob: c67b956590727270e8d0d89ad78623d580a347f9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
local path = require "nvim-lsp-installer.path"
local shell = require "nvim-lsp-installer.installers.shell"
local M = {}
function M.packages(packages)
return shell.raw(('export GOBIN="$PWD"; export GOPATH="$PWD"; go get %s;'):format(table.concat(packages, " ")), {
env = {
GO111MODULE = "on",
},
})
end
function M.executable(root_dir, executable)
return path.concat { root_dir, executable }
end
return M
|