update language-client config

This commit is contained in:
sfigato 2024-06-22 23:16:23 +02:00
parent 69446e5a1e
commit 913e4e88d4
Signed by: blallo
GPG Key ID: C530464EEDCF489A

View File

@ -34,6 +34,8 @@ let g:LanguageClient_serverCommands = {
\ 'java': ['/usr/bin/java-language-server'],
\ 'typescript': ['/usr/bin/typescript-language-server', '--stdio'],
\ 'typescriptreact': ['/usr/bin/typescript-language-server', '--stdio'],
"\ 'Dockerfile': ['/usr/bin/docker-langserver', '--stdio'],
\ 'hcl': ['/usr/bin/terraform-ls'],
\ 'jsonnet': ['/usr/bin/jsonnet-language-server'],
\ }
@ -47,7 +49,6 @@ let g:LanguageClient_rootMarkers = {
\ }
let g:LanguageClient_hoverPreview = 'always'
let g:LanguageClient_loggingFile = expand('~/.vim/LanguageClient.log')
function LC_maps()
if has_key(g:LanguageClient_serverCommands, &filetype)
@ -65,11 +66,11 @@ function LC_maps()
" noremap <buffer> <silent> gd <Plug>(lcn-definition)
" noremap <buffer> <silent> <F2> <Plug>(lcn-rename)
let g:LanguageClient_loggingLevel = 'DEBUG'
let g:LanguageClient_loggingFile = expand('~/.vim/LanguageClient.log')
set formatexpr=LanguageClient#textDocument_rangeFormatting_sync()
endif
endfunction
autocmd FileType * call LC_maps()
let g:LanguageClient_loggingLevel = 'DEBUG'
let g:LanguageClient_loggingFile = expand('~/.vim/LanguageClient.log')