aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/installers/go.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/nvim-lsp-installer/installers/go.lua')
-rw-r--r--lua/nvim-lsp-installer/installers/go.lua17
1 files changed, 10 insertions, 7 deletions
diff --git a/lua/nvim-lsp-installer/installers/go.lua b/lua/nvim-lsp-installer/installers/go.lua
index 1f1b730f..9c9a1ad5 100644
--- a/lua/nvim-lsp-installer/installers/go.lua
+++ b/lua/nvim-lsp-installer/installers/go.lua
@@ -5,13 +5,16 @@ local M = {}
function M.packages(packages)
return function(server, callback)
- local shell_installer = shell.raw(("go get -v %s; go clean -modcache;"):format(table.concat(packages, " ")), {
- env = {
- GO111MODULE = "on",
- GOBIN = server._root_dir,
- GOPATH = server._root_dir,
- },
- })
+ local shell_installer = shell.polyshell(
+ ("go get -v %s && go clean -modcache"):format(table.concat(packages, " ")),
+ {
+ env = {
+ GO111MODULE = "on",
+ GOBIN = server._root_dir,
+ GOPATH = server._root_dir,
+ },
+ }
+ )
shell_installer(server, callback)
end