diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-16 12:35:17 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-16 12:35:17 +0900 |
commit | d76744a4ae5612c4d08da082b535d5531183a64f (patch) | |
tree | 5517e2f349f0de40de1d819c9d21206402b13675 | |
parent | 08296a6c0b72c4024afdc1c989eaa93e873b9be6 (diff) | |
download | vim-lsp-settings-d76744a4ae5612c4d08da082b535d5531183a64f.tar.gz vim-lsp-settings-d76744a4ae5612c4d08da082b535d5531183a64f.tar.bz2 vim-lsp-settings-d76744a4ae5612c4d08da082b535d5531183a64f.zip |
Install gopls local
-rw-r--r-- | installer/install-gopls.cmd | 13 | ||||
-rwxr-xr-x | installer/install-gopls.sh | 8 | ||||
-rw-r--r-- | settings.json | 8 |
3 files changed, 26 insertions, 3 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" diff --git a/installer/install-gopls.sh b/installer/install-gopls.sh index 3327911..038916a 100755 --- a/installer/install-gopls.sh +++ b/installer/install-gopls.sh @@ -1,4 +1,10 @@ #!/bin/sh -go get -u golang.org/x/tools/cmd/gopls +set -e +cd $(dirname $0) +[ -d ../servers/gopls ] && rm -rf ../servers/gopls +mkdir ../servers/gopls +cd ../servers/gopls +go get -u golang.org/x/tools/cmd/gopls +rm -rf src diff --git a/settings.json b/settings.json index 8b1afc2..d6447a2 100644 --- a/settings.json +++ b/settings.json @@ -118,5 +118,13 @@ "npm" ] } + ], + "css": [ + { + "command": "css-languageserver", + "requires": [ + "npm" + ] + } ] } |