Browse Source

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).
master
Julio Biason 4 years ago
parent
commit
8ea37c4d12
  1. 31
      nvim/init.vim

31
nvim/init.vim

@ -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>

Loading…
Cancel
Save