]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/pack/stargrave/start/lsp/autoload/mylsp.vim
Move to vim-lsc from vim-lsp
[dotfiles.git] / vim / .vim / pack / stargrave / start / lsp / autoload / mylsp.vim
diff --git a/vim/.vim/pack/stargrave/start/lsp/autoload/mylsp.vim b/vim/.vim/pack/stargrave/start/lsp/autoload/mylsp.vim
deleted file mode 100644 (file)
index e64ccc9..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-" 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