This layer provides support for the Java language with the following packages:
Add the +lang/java layer in your configuration file,
function! Layers()
" ...
Layer '+lang/java'
" ...
endfunctionThe language server manages the binaries for you, but you need at least to have the JDK installed. See more info at coc-java.
You can configure the indentation by setting g:sp_java_indentation in your user-init block (i.e. before loading the plugin). By default it is set to 4.
This layer sets up the jdt.ls language server for usage with coc.nvim.
| Key Binding | Description |
|---|
|