Kaynağa Gözat

Reset &rtp before 'do' to invalidate Neovim cache of loaded Lua modules

Junegunn Choi 1 yıl önce
ebeveyn
işleme
2f8f04cf79
1 değiştirilmiş dosya ile 5 ekleme ve 0 silme
  1. 5 0
      plug.vim

+ 5 - 0
plug.vim

@@ -1040,6 +1040,11 @@ function! s:is_updated(dir)
 endfunction
 
 function! s:do(pull, force, todo)
+  if has('nvim')
+    " Reset &rtp to invalidate Neovim cache of loaded Lua modules
+    " See https://github.com/junegunn/vim-plug/pull/1157#issuecomment-1809226110
+    let &rtp = &rtp
+  endif
   for [name, spec] in items(a:todo)
     if !isdirectory(spec.dir)
       continue