Skip to content

Commit 13bf04e

Browse files
authored
Update groovyls.lua
I'd say most people will be using mason to install this. Anyway I'm not sure what was there before would work as the path would require the jar to be on your/neovim's path, I think, which won't be the case for something you download manually/or build locally so you'd have to move it there in which case creating a little shell script like mason does is hardly much extra effort.
1 parent d10ce09 commit 13bf04e

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

lsp/groovyls.lua

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,14 @@
2020

2121
---@type vim.lsp.Config
2222
return {
23-
cmd = {
24-
'java',
25-
'-jar',
26-
'groovy-language-server-all.jar',
27-
},
23+
-- When installed via mason
24+
cmd = { "groovy-language-server" },
25+
-- When installed/built locally, provide the correct filepath to Java.
26+
-- cmd = {
27+
-- 'java',
28+
-- '-jar',
29+
-- 'groovy-language-server-all.jar',
30+
-- },
2831
filetypes = { 'groovy' },
2932
root_markers = { 'Jenkinsfile', '.git' },
3033
}

0 commit comments

Comments
 (0)