From b7ef29a8886a57aadb787807a7c6cf74c1f0ed3a Mon Sep 17 00:00:00 2001 From: anand Date: Wed, 17 Dec 2025 15:57:55 +0530 Subject: Nixos --- nvim/lsp/groovyls.lua | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 nvim/lsp/groovyls.lua (limited to 'nvim/lsp/groovyls.lua') diff --git a/nvim/lsp/groovyls.lua b/nvim/lsp/groovyls.lua new file mode 100755 index 0000000..7610bf0 --- /dev/null +++ b/nvim/lsp/groovyls.lua @@ -0,0 +1,28 @@ +---@brief +--- +--- https://github.com/prominic/groovy-language-server.git +--- +--- Requirements: +--- - Linux/macOS (for now) +--- - Java 11+ +--- +--- `groovyls` can be installed by following the instructions [here](https://github.com/prominic/groovy-language-server.git#build). +--- +--- If you have installed groovy language server, you can set the `cmd` custom path as follow: +--- +--- ```lua +--- vim.lsp.config('groovyls', { +--- -- Unix +--- cmd = { "java", "-jar", "path/to/groovyls/groovy-language-server-all.jar" }, +--- ... +--- }) +--- ``` +return { + cmd = { + 'java', + '-jar', + 'groovy-language-server-all.jar', + }, + filetypes = { 'groovy' }, + root_markers = { 'Jenkinsfile', '.git' }, +} -- cgit v1.2.3