Skip to content
sciencesakura edited this page Aug 27, 2020 · 5 revisions

Requirements

  • Java 8+

Install

Download zip file

mkdir -p ~/lsp/kotlin-language-server
cd ~/lsp/kotlin-language-server
curl -L https://github.com/fwcd/kotlin-language-server/releases/download/0.7.0/server.zip -O
unzip server.zip

Registering in .vimrc

if executable(expand('~/lsp/kotlin-language-server/server/bin/kotlin-language-server'))
    au User lsp_setup call lsp#register_server({
        \ 'name': 'kotlin-language-server',
        \ 'cmd': {server_info->[
        \     &shell,
        \     &shellcmdflag,
        \     expand('~/lsp/kotlin-language-server/server/bin/kotlin-language-server')
        \ ]},
        \ 'whitelist': ['kotlin']
        \ })
endif