Skip to content
sciencesakura edited this page Apr 8, 2020 · 2 revisions

Requirements

  • Java 8+

Install

Checkout the project

mkdir ~/lsp
cd ~/lsp
git clone https://github.com/prominic/groovy-language-server.git

Build

cd ~/lsp/groovy-language-server
./gradlew build

Registering in .vimrc

if executable('java') && filereadable(expand('$HOME/lsp/groovy-language-server/build/libs/groovy-language-server-all.jar'))
  autocmd User lsp_setup call lsp#register_server({
    \'name': 'groovy-language-server',
    \'cmd': {server_info->[
    \  'java',
    \  '-jar',
    \  expand('$HOME/lsp/groovy-language-server/build/libs/groovy-language-server-all.jar')
    \]},
    \'whitelist': ['groovy']
    \})
endif