From 8ea37c4d1245c123fdcde1c3fec133a4997c172d Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Thu, 4 Feb 2021 14:34:30 -0300 Subject: [PATCH] Changed chars in LanguageClient Some of the original characters were displayed as two characters, which made the gutter "dance" depending on the warning (like the "i" indicator). --- nvim/init.vim | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) 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()