An extension for coc.nvim to enable Groovy language server support.
:CocInstall coc-groovy
Maven project support requires having the Maven Wrapper installed in your project or having Maven installed on your environment path.
The following coc.nvim commands are available:
groovy.project.config.update
: This is available when the editor is focused on a Groovy file. It forces project configuration/classpath updates (eg. dependency changes) according to the project build descriptor.The following settings are supported:
groovy.enable
: Enable the coc-groovy extension, default: true
groovy.java.home
: The absolute path to the JDK 8+ home directory. This is used to launch the Groovy language server. Requires a coc server restart.groovy.ls.vmargs
: Extra Java VM arguments used to launch the Groovy language server. Requires a coc server restart.groovy.ls.home
: The absolute path to the Groovy language server. This would be used instead of the bundled server when specified.groovy.project.referencedLibraries
: Configure additional paths (jar file or directory) for referencing libraries in a Groovy project. Note, Maven and Gradle projects will have their classpath automatically added.groovy.trace.server
: Traces the communication between the coc-groovy extension and the Groovy language server.The path to the Java Development Kit is searched in the following order:
groovy.java.home
setting in coc.nvim settings (workspace then user settings).JDK_HOME
environment variable.JAVA_HOME
environment variable.EPL 2.0, See LICENSE for more information.