From: Sergey Matveev Date: Fri, 7 Jan 2022 16:40:21 +0000 (+0300) Subject: Fix F3 imports completion with latest vim-lsp X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=efec8ecc6aea7f853aba30893b1c85b48b8b9a49 Fix F3 imports completion with latest vim-lsp --- 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 aa9a168..8bb62b8 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#ui#vim#diagnostics#get_all_buffer_diagnostics() + for diag in lsp#internal#diagnostics#movement#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