Skip to content
Sergio Semedi Barranco edited this page Oct 20, 2019 · 3 revisions

Installing server

Check metals' vim integration for how to download and build it the server.

Registering in .vimrc

if executable('metals-vim')
   au User lsp_setup call lsp#register_server({
      \ 'name': 'metals',
      \ 'cmd': {server_info->['metals-vim']},
      \ 'initialization_options': { 'rootPatterns': 'build.sbt' },
      \ 'whitelist': [ 'scala', 'sbt' ],
      \ })
endif