+++ /dev/null
-" 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#ui#vim#diagnostics#get_all_buffer_diagnostics()
- call add(l, {
- \"lnum": d["range"]["start"]["line"],
- \"col": d["range"]["start"]["character"],
- \"text": d["message"],
- \"bufnr": bufnr()})
- endfor
- call setqflist(l, "r")
-endfunction