autoload/lsp/diag.vim | 2 +- autoload/lsp/offset.vim | 8 ++++---- autoload/lsp/symbol.vim | 6 +++--- autoload/lsp/textedit.vim | 2 +- autoload/lsp/util.vim | 4 ++-- diff --git a/autoload/lsp/diag.vim b/autoload/lsp/diag.vim index 7b6f8280fa49d24f3c728bc138c3a32e9bac96b9..30b1b7d095dda5364b12446afa85b46a444852b3 100644 --- a/autoload/lsp/diag.vim +++ b/autoload/lsp/diag.vim @@ -163,7 +163,7 @@ # Refresh the placed diagnostics in buffer "bnr" # This inline signs, inline props, and virtual text diagnostics def DiagsRefresh(bnr: number) - bnr->bufload() + :silent! bnr->bufload() RemoveDiagVisualsForBuffer(bnr) diff --git a/autoload/lsp/offset.vim b/autoload/lsp/offset.vim index b6bbe38eee8861a87b508d1d8cbd0f518ba278b0..699964e536c799ab64a7414d08d55f18c4a6627f 100644 --- a/autoload/lsp/offset.vim +++ b/autoload/lsp/offset.vim @@ -19,9 +19,9 @@ # LSP client plugin also uses utf-32 encoding return endif - bnr->bufload() + :silent! bnr->bufload() var text = bnr->getbufline(pos.line + 1)->get(0, '') - if text == '' + if text->empty() return endif @@ -45,10 +45,10 @@ # LSP client plugin also uses utf-32 encoding return endif - bnr->bufload() + :silent! bnr->bufload() var text = bnr->getbufline(pos.line + 1)->get(0, '') # If the line is empty then don't decode the character position. - if text == '' + if text->empty() return endif diff --git a/autoload/lsp/symbol.vim b/autoload/lsp/symbol.vim index 081af96e34b29a8949485d66941bc33a6305c019..b26057cd575fef7504a3ffd846fcdbbf627b0214 100644 --- a/autoload/lsp/symbol.vim +++ b/autoload/lsp/symbol.vim @@ -352,7 +352,7 @@ var bnr: number = fname->bufnr() if bnr == -1 bnr = fname->bufadd() endif - bnr->bufload() + :silent! bnr->bufload() var lnum = range.start.line + 1 var text: string = bnr->getbufline(lnum)->get(0, '') @@ -394,7 +394,7 @@ var bnr: number = fname->bufnr() if bnr == -1 bnr = fname->bufadd() endif - bnr->bufload() + :silent! bnr->bufload() var text: string = bnr->getbufline(range.start.line + 1)->get(0, '')->trim("\t ", 1) qflist->add({filename: fname, lnum: range.start.line + 1, @@ -441,7 +441,7 @@ if bnum == 0 # Failed to create or find a buffer return endif - silent! bnum->bufload() + :silent! bnum->bufload() if lspserver.peekSymbolPopup->winbufnr() != -1 # If the symbol popup window is already present, close it. diff --git a/autoload/lsp/textedit.vim b/autoload/lsp/textedit.vim index 00c01727bf39ed3015fbd3600547c5798bf5a689..5c11408f1e604dfd659578228414a4ebba763413 100644 --- a/autoload/lsp/textedit.vim +++ b/autoload/lsp/textedit.vim @@ -104,7 +104,7 @@ return endif # if the buffer is not loaded, load it and make it a listed buffer - bnr->bufload() + :silent! bnr->bufload() setbufvar(bnr, '&buflisted', true) var start_line: number = 4294967295 # 2 ^ 32 diff --git a/autoload/lsp/util.vim b/autoload/lsp/util.vim index 023c83553e85d471bfb8b45048c5c9b92fb613ae..c7b0d794f121b57643273ce9b119638a023b8e9f 100644 --- a/autoload/lsp/util.vim +++ b/autoload/lsp/util.vim @@ -167,7 +167,7 @@ return col endif # Need a loaded buffer to read the line and compute the offset - bnr->bufload() + :silent! bnr->bufload() var ltext: string = bnr->getbufline(pos.line + 1)->get(0, '') if ltext->empty() @@ -194,7 +194,7 @@ return col endif # Need a loaded buffer to read the line and compute the offset - bnr->bufload() + :silent! bnr->bufload() var ltext: string = bnr->getbufline(pos.line + 1)->get(0, '') if ltext->empty()