vimrc: Add Java language server support.
This commit is contained in:
parent
6d4a24728e
commit
b72858fed4
1 changed files with 9 additions and 0 deletions
9
.vimrc
9
.vimrc
|
|
@ -177,6 +177,15 @@ if executable('typescript-language-server')
|
||||||
\ })
|
\ })
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Java! (kill me)
|
||||||
|
if executable('jdtls')
|
||||||
|
au User lsp_setup call lsp#register_server({
|
||||||
|
\ 'name': 'Eclipse JDT Language Server',
|
||||||
|
\ 'cmd': {server_info->['jdtls', '-data', getcwd()]},
|
||||||
|
\ 'allowlist': ['java']
|
||||||
|
\ })
|
||||||
|
endif
|
||||||
|
|
||||||
" LSP config
|
" LSP config
|
||||||
function! s:on_lsp_buffer_enabled() abort
|
function! s:on_lsp_buffer_enabled() abort
|
||||||
setlocal omnifunc=lsp#complete
|
setlocal omnifunc=lsp#complete
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue