From efec8ecc6aea7f853aba30893b1c85b48b8b9a49 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Fri, 7 Jan 2022 19:40:21 +0300 Subject: [PATCH] Fix F3 imports completion with latest vim-lsp --- .../start/py-importcompl/autoload/python/importcompl.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.44.0