Skip to content

Commit 2f8f04c

Browse files
committed
Reset &rtp before 'do' to invalidate Neovim cache of loaded Lua modules
1 parent 3264b81 commit 2f8f04c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plug.vim

+5
Original file line numberDiff line numberDiff line change
@@ -1040,6 +1040,11 @@ function! s:is_updated(dir)
10401040
endfunction
10411041

10421042
function! s:do(pull, force, todo)
1043+
if has('nvim')
1044+
" Reset &rtp to invalidate Neovim cache of loaded Lua modules
1045+
" See https://github.com/junegunn/vim-plug/pull/1157#issuecomment-1809226110
1046+
let &rtp = &rtp
1047+
endif
10431048
for [name, spec] in items(a:todo)
10441049
if !isdirectory(spec.dir)
10451050
continue

0 commit comments

Comments
 (0)