|
|
@ -66,10 +66,15 @@ let g:polyglot_disabled = ['sensible', 'csv'] |
|
|
|
" }}} |
|
|
|
" }}} |
|
|
|
|
|
|
|
|
|
|
|
" LanguageClient {{{ |
|
|
|
" LanguageClient {{{ |
|
|
|
|
|
|
|
" Available analyzers. |
|
|
|
let g:LanguageClient_serverCommands = { |
|
|
|
let g:LanguageClient_serverCommands = { |
|
|
|
\ 'rust': ['rust-analyzer'], |
|
|
|
\ 'rust': ['rust-analyzer'], |
|
|
|
\ 'python': ['pyls'], |
|
|
|
\ 'python': ['pyls'], |
|
|
|
\ } |
|
|
|
\ } |
|
|
|
|
|
|
|
" Display hints in the location list (default is QuickFix, which conflicts |
|
|
|
|
|
|
|
" with `:grep`). |
|
|
|
|
|
|
|
let g:LanguageClient_selectionUI = 'location-list' |
|
|
|
|
|
|
|
|
|
|
|
nnoremap <silent> <leader>] :call LanguageClient#textDocument_definition()<CR> |
|
|
|
nnoremap <silent> <leader>] :call LanguageClient#textDocument_definition()<CR> |
|
|
|
nnoremap <silent> <leader>k :call LanguageClient#textDocument_hover()<CR> |
|
|
|
nnoremap <silent> <leader>k :call LanguageClient#textDocument_hover()<CR> |
|
|
|
nnoremap <silent> <leader>r :call LanguageClient#textDocument_rename()<CR> |
|
|
|
nnoremap <silent> <leader>r :call LanguageClient#textDocument_rename()<CR> |
|
|
|