aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2020-02-22 02:29:25 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2020-02-22 02:29:25 +0900
commitc062e33e48161468d4df60696fa43dae0dfabce7 (patch)
tree1f928278bd3c36634aff976a119e80d5b8bc1f24
parent3e48c84109192369bf509b7352c05b58d703768a (diff)
downloadvim-lsp-settings-c062e33e48161468d4df60696fa43dae0dfabce7.tar.gz
vim-lsp-settings-c062e33e48161468d4df60696fa43dae0dfabce7.tar.bz2
vim-lsp-settings-c062e33e48161468d4df60696fa43dae0dfabce7.zip
Fix installer of solargraph
-rw-r--r--installer/install-solargraph.cmd6
-rwxr-xr-xinstaller/install-solargraph.sh2
2 files changed, 6 insertions, 2 deletions
diff --git a/installer/install-solargraph.cmd b/installer/install-solargraph.cmd
index 5029d99..fd00e74 100644
--- a/installer/install-solargraph.cmd
+++ b/installer/install-solargraph.cmd
@@ -6,7 +6,11 @@ call bundle install --path vendor/bundle
echo @echo off ^
-bundle exec ruby %%~dp0\bin/solargraph stdio ^
+setlocal ^
+
+set BUNDLE_GEMFILE=%%~dp0Gemfile ^
+
+bundle exec ruby %%~dp0\bin\solargraph %%* ^
> solargraph.cmd
diff --git a/installer/install-solargraph.sh b/installer/install-solargraph.sh
index df8cd7d..92377f3 100755
--- a/installer/install-solargraph.sh
+++ b/installer/install-solargraph.sh
@@ -9,7 +9,7 @@ cat <<EOF >solargraph
#!/usr/bin/env bash
DIR=\$(cd \$(dirname \$0); pwd)
-cd \$DIR && bundle exec ruby \$DIR/bin/solargraph stdio
+BUNDLE_GEMFILE=\$DIR/Gemfile bundle exec ruby \$DIR/bin/solargraph \$*
EOF
chmod +x solargraph