]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Revert "Latest vim-lsp compatibility"
authorSergey Matveev <stargrave@stargrave.org>
Tue, 11 Jan 2022 11:18:24 +0000 (14:18 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 27 Jan 2022 11:35:14 +0000 (14:35 +0300)
Fucking vim-lsp has an enormous number of bugs. Some commits says that
they are fixed (like broken hovers), but they lie. I am sick of
struggling for all those new versions.

vim/.vim/pack/stargrave/start/lsp/autoload/mylsp.vim
vim/.vim/pack/stargrave/start/py-importcompl/autoload/python/importcompl.vim

index 9c2932c9f73876d04be5b448753b185914cacd9b..e64ccc9fc7d973cced030c7b641235df47c9b05d 100644 (file)
@@ -1,11 +1,11 @@
-" 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"],
index 8bb62b83936bb9de021bb9f0cb2009fedfb2e686..aa9a1685df669c28aac1952af2ebbc3ecf9b64a3 100644 (file)
@@ -57,7 +57,7 @@ function! python#importcompl#all() abort
         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