aboutsummaryrefslogtreecommitdiff
path: root/installer/install-solargraph.cmd
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-17 00:52:46 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-17 00:52:46 +0900
commit915dfc3b4e209a255242a929147b19f376626ef6 (patch)
tree13381071c1547cc46abe171fcd6fea7d79b56570 /installer/install-solargraph.cmd
parent9a268fc46992cea9207eca627c77a6757a663f9e (diff)
downloadvim-lsp-settings-915dfc3b4e209a255242a929147b19f376626ef6.tar.gz
vim-lsp-settings-915dfc3b4e209a255242a929147b19f376626ef6.tar.bz2
vim-lsp-settings-915dfc3b4e209a255242a929147b19f376626ef6.zip
Install loacal
Diffstat (limited to 'installer/install-solargraph.cmd')
-rw-r--r--installer/install-solargraph.cmd14
1 files changed, 13 insertions, 1 deletions
diff --git a/installer/install-solargraph.cmd b/installer/install-solargraph.cmd
index 0a1fa44..702fec6 100644
--- a/installer/install-solargraph.cmd
+++ b/installer/install-solargraph.cmd
@@ -1,3 +1,15 @@
@echo off
-gem install --user-install solargraph
+cd %~dp0
+if exist "..\servers\solargraph" rd /S /Q "..\servers\solargraph"
+md "..\servers\solargraph"
+cd "..\servers\solargraph"
+git clone "https://github.com/castwide/solargraph" .
+call bundle install --path vendor/bundle
+
+echo @echo off ^
+
+bundle exec ruby %%~dp0\bin/solargraph stdio ^
+
+> solargraph.cmd
+