From dcf117a8a60d887a2c2ff9d5617a9c39c5ee95fb Mon Sep 17 00:00:00 2001 From: William Boman Date: Mon, 5 Apr 2021 14:19:07 +0200 Subject: rename Installer to Server for clarity (#3) --- lua/nvim-lsp-installer/installers/solargraph.lua | 34 ------------------------ 1 file changed, 34 deletions(-) delete mode 100644 lua/nvim-lsp-installer/installers/solargraph.lua (limited to 'lua/nvim-lsp-installer/installers/solargraph.lua') 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' }, - } -} -- cgit v1.2.3-70-g09d2