diff --git a/nvim/init.vim b/nvim/init.vim index c9f704d..4d5631b 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -75,6 +75,37 @@ let g:LanguageClient_serverCommands = { " with `:grep`). let g:LanguageClient_selectionUI = 'location-list' 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 ] :call LanguageClient#textDocument_definition() nnoremap k :call LanguageClient#textDocument_hover()