diff options
Diffstat (limited to 'lua/nvim-lsp-installer/servers/groovyls/init.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/servers/groovyls/init.lua | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lua/nvim-lsp-installer/servers/groovyls/init.lua b/lua/nvim-lsp-installer/servers/groovyls/init.lua index 357992a1..f885d933 100644 --- a/lua/nvim-lsp-installer/servers/groovyls/init.lua +++ b/lua/nvim-lsp-installer/servers/groovyls/init.lua @@ -1,5 +1,6 @@ local server = require "nvim-lsp-installer.server" local path = require "nvim-lsp-installer.path" +local installers = require "nvim-lsp-installer.installers" local shell = require "nvim-lsp-installer.installers.shell" local root_dir = server.get_server_root_path "groovyls" @@ -12,11 +13,11 @@ return server.Server:new { error "Missing a Javac installation." end end, - installer = shell.raw [[ - git clone --depth 1 https://github.com/GroovyLanguageServer/groovy-language-server .; - ./gradlew build; - ]], + installer = installers.when { + unix = shell.bash [[ git clone --depth 1 https://github.com/GroovyLanguageServer/groovy-language-server . && ./gradlew build ]], + win = shell.cmd [[ git clone --depth 1 https://github.com/GroovyLanguageServer/groovy-language-server . && .\gradlew build ]], + }, default_options = { - cmd = { "java", "-jar", path.concat { root_dir, "groovy-language-server-all.jar" } }, + cmd = { "java", "-jar", path.concat { root_dir, "build", "libs", "groovyls-all.jar" } }, }, } |
