--- /dev/null
+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