update language-client config
This commit is contained in:
parent
69446e5a1e
commit
913e4e88d4
|
@ -34,6 +34,8 @@ let g:LanguageClient_serverCommands = {
|
||||||
\ 'java': ['/usr/bin/java-language-server'],
|
\ 'java': ['/usr/bin/java-language-server'],
|
||||||
\ 'typescript': ['/usr/bin/typescript-language-server', '--stdio'],
|
\ 'typescript': ['/usr/bin/typescript-language-server', '--stdio'],
|
||||||
\ 'typescriptreact': ['/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'],
|
\ 'jsonnet': ['/usr/bin/jsonnet-language-server'],
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
|
@ -47,7 +49,6 @@ let g:LanguageClient_rootMarkers = {
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
let g:LanguageClient_hoverPreview = 'always'
|
let g:LanguageClient_hoverPreview = 'always'
|
||||||
let g:LanguageClient_loggingFile = expand('~/.vim/LanguageClient.log')
|
|
||||||
|
|
||||||
function LC_maps()
|
function LC_maps()
|
||||||
if has_key(g:LanguageClient_serverCommands, &filetype)
|
if has_key(g:LanguageClient_serverCommands, &filetype)
|
||||||
|
@ -65,11 +66,11 @@ function LC_maps()
|
||||||
" noremap <buffer> <silent> gd <Plug>(lcn-definition)
|
" noremap <buffer> <silent> gd <Plug>(lcn-definition)
|
||||||
" noremap <buffer> <silent> <F2> <Plug>(lcn-rename)
|
" 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()
|
set formatexpr=LanguageClient#textDocument_rangeFormatting_sync()
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
autocmd FileType * call LC_maps()
|
autocmd FileType * call LC_maps()
|
||||||
|
|
||||||
let g:LanguageClient_loggingLevel = 'DEBUG'
|
|
||||||
let g:LanguageClient_loggingFile = expand('~/.vim/LanguageClient.log')
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user