From: Oleksiy Hryshchenko Date: Tue, 28 Mar 2023 08:40:03 +0000 (+0300) Subject: add bufload and remove single quotes from the key names X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=6a7464d2dfa68fa5e4525e876712bcbed5f0300b;p=vim-lsp.git add bufload and remove single quotes from the key names --- diff --git a/autoload/lsp/diag.vim b/autoload/lsp/diag.vim index 7e50fe4..d21e21d 100644 --- a/autoload/lsp/diag.vim +++ b/autoload/lsp/diag.vim @@ -24,6 +24,7 @@ enddef # Refresh the signs placed in buffer 'bnr' on lines with a diagnostic message. def DiagsRefreshSigns(lspserver: dict, bnr: number) + bnr->bufload() # Remove all the existing diagnostic signs sign_unplace('LSPDiag', {buffer: bnr}) @@ -49,11 +50,11 @@ def DiagsRefreshSigns(lspserver: dict, bnr: number) if has('patch-9.0.1157') && opt.lspOptions.showDiagWithVirtualText prop_add( lnum, 0, { - 'bufnr': bnr, - 'type': 'LspDiagVirtualText', - 'text': '┌─ ' .. diag.message, - 'text_align': 'above', - 'text_padding_left': diag.range.start.character}) + bufnr: bnr, + type: 'LspDiagVirtualText', + text: '┌─ ' .. diag.message, + text_align: 'above', + text_padding_left: diag.range.start.character}) endif endfor