|
|
@ -75,6 +75,37 @@ let g:LanguageClient_serverCommands = { |
|
|
|
" with `:grep`). |
|
|
|
" with `:grep`). |
|
|
|
let g:LanguageClient_selectionUI = 'location-list' |
|
|
|
let g:LanguageClient_selectionUI = 'location-list' |
|
|
|
let g:LanguageClient_diagnosticsList = 'Location' |
|
|
|
let g:LanguageClient_diagnosticsList = 'Location' |
|
|
|
|
|
|
|
" Use single chars for notifications |
|
|
|
|
|
|
|
let g:LanguageClient_diagnosticsDisplay = { |
|
|
|
|
|
|
|
\ 1: { |
|
|
|
|
|
|
|
\ "name": "Error", |
|
|
|
|
|
|
|
\ "texthl": "LanguageClientError", |
|
|
|
|
|
|
|
\ "signText": "x", |
|
|
|
|
|
|
|
\ "signTexthl": "LanguageClientErrorSign", |
|
|
|
|
|
|
|
\ "virtualTexthl": "Error", |
|
|
|
|
|
|
|
\ }, |
|
|
|
|
|
|
|
\ 2: { |
|
|
|
|
|
|
|
\ "name": "Warning", |
|
|
|
|
|
|
|
\ "texthl": "LanguageClientWarning", |
|
|
|
|
|
|
|
\ "signText": "!", |
|
|
|
|
|
|
|
\ "signTexthl": "LanguageClientWarningSign", |
|
|
|
|
|
|
|
\ "virtualTexthl": "Todo", |
|
|
|
|
|
|
|
\ }, |
|
|
|
|
|
|
|
\ 3: { |
|
|
|
|
|
|
|
\ "name": "Information", |
|
|
|
|
|
|
|
\ "texthl": "LanguageClientInfo", |
|
|
|
|
|
|
|
\ "signText": "i", |
|
|
|
|
|
|
|
\ "signTexthl": "LanguageClientInfoSign", |
|
|
|
|
|
|
|
\ "virtualTexthl": "Todo", |
|
|
|
|
|
|
|
\ }, |
|
|
|
|
|
|
|
\ 4: { |
|
|
|
|
|
|
|
\ "name": "Hint", |
|
|
|
|
|
|
|
\ "texthl": "LanguageClientInfo", |
|
|
|
|
|
|
|
\ "signText": ">", |
|
|
|
|
|
|
|
\ "signTexthl": "LanguageClientInfoSign", |
|
|
|
|
|
|
|
\ "virtualTexthl": "Todo", |
|
|
|
|
|
|
|
\ }, |
|
|
|
|
|
|
|
\ } |
|
|
|
|
|
|
|
|
|
|
|
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> |
|
|
|