aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/installers/solargraph.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2021-04-05 14:19:07 +0200
committerGitHub <noreply@github.com>2021-04-05 14:19:07 +0200
commitdcf117a8a60d887a2c2ff9d5617a9c39c5ee95fb (patch)
tree419e086d757624aa9e2bcaa456e02a6c8f7a3968 /lua/nvim-lsp-installer/installers/solargraph.lua
parenteslintls: avoid globbing/word splitting (diff)
downloadmason-dcf117a8a60d887a2c2ff9d5617a9c39c5ee95fb.tar
mason-dcf117a8a60d887a2c2ff9d5617a9c39c5ee95fb.tar.gz
mason-dcf117a8a60d887a2c2ff9d5617a9c39c5ee95fb.tar.bz2
mason-dcf117a8a60d887a2c2ff9d5617a9c39c5ee95fb.tar.lz
mason-dcf117a8a60d887a2c2ff9d5617a9c39c5ee95fb.tar.xz
mason-dcf117a8a60d887a2c2ff9d5617a9c39c5ee95fb.tar.zst
mason-dcf117a8a60d887a2c2ff9d5617a9c39c5ee95fb.zip
rename Installer to Server for clarity (#3)
Diffstat (limited to 'lua/nvim-lsp-installer/installers/solargraph.lua')
-rw-r--r--lua/nvim-lsp-installer/installers/solargraph.lua34
1 files changed, 0 insertions, 34 deletions
diff --git a/lua/nvim-lsp-installer/installers/solargraph.lua b/lua/nvim-lsp-installer/installers/solargraph.lua
deleted file mode 100644
index c227c2b3..00000000
--- a/lua/nvim-lsp-installer/installers/solargraph.lua
+++ /dev/null
@@ -1,34 +0,0 @@
-local installer = require('nvim-lsp-installer.installer')
-
-local root_dir = installer.get_server_root_path('ruby')
-
-local install_cmd = [[
-wget -O solargraph.tar $(curl -s https://api.github.com/repos/castwide/solargraph/tags | grep 'tarball_url' | cut -d\" -f4 | head -n1);
-rm -rf solargraph;
-mkdir solargraph;
-tar -xzf solargraph.tar -C solargraph --strip-components 1;
-rm solargraph.tar;
-cd solargraph;
-
-bundle install --without development --path vendor/bundle;
-
-echo '#!/usr/bin/env bash' > solargraph;
-echo 'cd "$(dirname "$0")" || exit' >> solargraph;
-echo 'bundle exec solargraph $*' >> solargraph;
-
-chmod +x solargraph;
-]]
-
-return installer.Installer:new {
- name = "solargraph",
- root_dir = root_dir,
- install_cmd = install_cmd,
- pre_install = function ()
- if vim.fn.executable('bundle') ~= 1 then
- error("bundle not installed")
- end
- end,
- default_options = {
- cmd = { root_dir .. '/solargraph/solargraph', 'stdio' },
- }
-}