Skip to content

Commit a390813

Browse files
committed
lsp: ignore diagnostics that do not satisfy g:go_diagnostics_level
1 parent 512d97d commit a390813

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

autoload/go/lsp.vim

+3
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,9 @@ function! s:newlsp() abort
259259
endif
260260

261261
for l:diag in l:data.diagnostics
262+
if l:level < l:diag.severity
263+
continue
264+
endif
262265
let [l:error, l:matchpos] = s:errorFromDiagnostic(l:diag, l:bufname, l:fname)
263266
let l:diagnostics = add(l:diagnostics, l:error)
264267

0 commit comments

Comments
 (0)