]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Fix F3 imports completion with latest vim-lsp
authorSergey Matveev <stargrave@stargrave.org>
Fri, 7 Jan 2022 16:40:21 +0000 (19:40 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 27 Jan 2022 11:35:14 +0000 (14:35 +0300)
vim/.vim/pack/stargrave/start/py-importcompl/autoload/python/importcompl.vim

index aa9a1685df669c28aac1952af2ebbc3ecf9b64a3..8bb62b83936bb9de021bb9f0cb2009fedfb2e686 100644 (file)
@@ -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