From: Sergey Matveev Date: Tue, 11 Jan 2022 11:18:24 +0000 (+0300) Subject: Revert "Latest vim-lsp compatibility" X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=50c727abbb918becd61df61de534dacc2d54ddc1 Revert "Latest vim-lsp compatibility" 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. --- diff --git a/vim/.vim/pack/stargrave/start/lsp/autoload/mylsp.vim b/vim/.vim/pack/stargrave/start/lsp/autoload/mylsp.vim index 9c2932c..e64ccc9 100644 --- a/vim/.vim/pack/stargrave/start/lsp/autoload/mylsp.vim +++ b/vim/.vim/pack/stargrave/start/lsp/autoload/mylsp.vim @@ -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"], diff --git a/vim/.vim/pack/stargrave/start/py-importcompl/autoload/python/importcompl.vim b/vim/.vim/pack/stargrave/start/py-importcompl/autoload/python/importcompl.vim index 8bb62b8..aa9a168 100644 --- a/vim/.vim/pack/stargrave/start/py-importcompl/autoload/python/importcompl.vim +++ b/vim/.vim/pack/stargrave/start/py-importcompl/autoload/python/importcompl.vim @@ -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