-" That function requires vim-lsp/autoload/lsp/internal/diagnostics/movement.vim:
-" function! lsp#internal#diagnostics#movement#get_all_buffer_diagnostics(...) abort
+" That function requires vim-lsp/autoload/lsp/ui/vim/diagnostics.vim:
+" function! lsp#ui#vim#diagnostics#get_all_buffer_diagnostics(...) abort
" return s:get_all_buffer_diagnostics()
" endfunction
function! mylsp#qfpopulate() abort
let l = []
- for d in lsp#internal#diagnostics#movement#get_all_buffer_diagnostics()
+ for d in lsp#ui#vim#diagnostics#get_all_buffer_diagnostics()
call add(l, {
\"lnum": d["range"]["start"]["line"],
\"col": d["range"]["start"]["character"],
endfor
endfor
let result = []
- for diag in lsp#internal#diagnostics#movement#get_all_buffer_diagnostics()
+ for diag in lsp#ui#vim#diagnostics#get_all_buffer_diagnostics()
if diag["message"] !~ "^undefined name" | continue | endif
let m = diag["message"][strridx(diag["message"][:-2], "'")+1:-2]
if len(m) == 0 || !has_key(imports, m) | continue | endif