aboutsummaryrefslogtreecommitdiff
path: root/installer/install-gopls.cmd
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-16 12:35:17 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-16 12:35:17 +0900
commitd76744a4ae5612c4d08da082b535d5531183a64f (patch)
tree5517e2f349f0de40de1d819c9d21206402b13675 /installer/install-gopls.cmd
parent08296a6c0b72c4024afdc1c989eaa93e873b9be6 (diff)
downloadvim-lsp-settings-d76744a4ae5612c4d08da082b535d5531183a64f.tar.gz
vim-lsp-settings-d76744a4ae5612c4d08da082b535d5531183a64f.tar.bz2
vim-lsp-settings-d76744a4ae5612c4d08da082b535d5531183a64f.zip
Install gopls local
Diffstat (limited to 'installer/install-gopls.cmd')
-rw-r--r--installer/install-gopls.cmd13
1 files changed, 11 insertions, 2 deletions
diff --git a/installer/install-gopls.cmd b/installer/install-gopls.cmd
index a219962..d526959 100644
--- a/installer/install-gopls.cmd
+++ b/installer/install-gopls.cmd
@@ -1,3 +1,12 @@
-#!/bin/sh
+@echo off
-go get -u golang.org/x/tools/cmd/gopls
+setlocal
+
+cd %~dp0
+if exist "..\servers\gopls" rd /S /Q "..\servers\gopls"
+md "..\servers\gopls"
+cd "..\servers\gopls"
+set GOPATH=%cd%
+set GOBIN=%cd%
+go get -v -u golang.org/x/tools/cmd/gopls
+rd /S /Q "src"