Skip to content

Commit

Permalink
lsp: ignore diagnostics that do not satisfy g:go_diagnostics_level
Browse files Browse the repository at this point in the history
  • Loading branch information
bhcleek committed Dec 22, 2020
1 parent 512d97d commit a390813
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions autoload/go/lsp.vim
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@ function! s:newlsp() abort
endif

for l:diag in l:data.diagnostics
if l:level < l:diag.severity
continue
endif
let [l:error, l:matchpos] = s:errorFromDiagnostic(l:diag, l:bufname, l:fname)
let l:diagnostics = add(l:diagnostics, l:error)

Expand Down

0 comments on commit a390813

Please sign in to comment.