diff options
| author | William Boman <william@redwill.se> | 2021-09-10 13:38:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-10 13:38:39 +0200 |
| commit | d2ec0c0070c01ba0e3e8926031cfe848a016df44 (patch) | |
| tree | bf57f20725e11125ed51caac547c483d4e642831 /lua/nvim-lsp-installer/servers/solargraph/init.lua | |
| parent | CUSTOM_SERVERS.md: update docs (diff) | |
| download | mason-d2ec0c0070c01ba0e3e8926031cfe848a016df44.tar mason-d2ec0c0070c01ba0e3e8926031cfe848a016df44.tar.gz mason-d2ec0c0070c01ba0e3e8926031cfe848a016df44.tar.bz2 mason-d2ec0c0070c01ba0e3e8926031cfe848a016df44.tar.lz mason-d2ec0c0070c01ba0e3e8926031cfe848a016df44.tar.xz mason-d2ec0c0070c01ba0e3e8926031cfe848a016df44.tar.zst mason-d2ec0c0070c01ba0e3e8926031cfe848a016df44.zip | |
rewrite some installers for broader cross-platform support (#85)
- Remove all usage of zx in favour of native Lua (via libuv)
- Introduce new set of `std` installers
The following servers will have to be reinstalled due to this change:
1. clangd
2. solargraph
3. sumneko_lua
4. tailwindcss
Diffstat (limited to 'lua/nvim-lsp-installer/servers/solargraph/init.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/servers/solargraph/init.lua | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/lua/nvim-lsp-installer/servers/solargraph/init.lua b/lua/nvim-lsp-installer/servers/solargraph/init.lua index d23b029e..458bb7ea 100644 --- a/lua/nvim-lsp-installer/servers/solargraph/init.lua +++ b/lua/nvim-lsp-installer/servers/solargraph/init.lua @@ -1,22 +1,14 @@ local server = require "nvim-lsp-installer.server" -local installers = require "nvim-lsp-installer.installers" -local path = require "nvim-lsp-installer.path" -local zx = require "nvim-lsp-installer.installers.zx" +local gem = require "nvim-lsp-installer.installers.gem" -local root_dir = server.get_server_root_path "ruby" +local root_dir = server.get_server_root_path "solargraph" return server.Server:new { name = "solargraph", root_dir = root_dir, - installer = installers.when { - unix = zx.file "./install.mjs", - }, - pre_install_check = function() - if vim.fn.executable "bundle" ~= 1 then - error "bundle not installed" - end - end, + installer = gem.packages { "solargraph" }, default_options = { - cmd = { path.concat { root_dir, "solargraph", "solargraph" }, "stdio" }, + cmd = { gem.executable(root_dir, "solargraph"), "stdio" }, + cmd_env = gem.env(root_dir), }, } |
