diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2020-02-22 02:29:25 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2020-02-22 02:29:25 +0900 |
commit | c062e33e48161468d4df60696fa43dae0dfabce7 (patch) | |
tree | 1f928278bd3c36634aff976a119e80d5b8bc1f24 /installer | |
parent | 3e48c84109192369bf509b7352c05b58d703768a (diff) | |
download | vim-lsp-settings-c062e33e48161468d4df60696fa43dae0dfabce7.tar.gz vim-lsp-settings-c062e33e48161468d4df60696fa43dae0dfabce7.tar.bz2 vim-lsp-settings-c062e33e48161468d4df60696fa43dae0dfabce7.zip |
Fix installer of solargraph
Diffstat (limited to 'installer')
-rw-r--r-- | installer/install-solargraph.cmd | 6 | ||||
-rwxr-xr-x | installer/install-solargraph.sh | 2 |
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 |