Skip to content

Commit

Permalink
Reset &rtp before 'do' to invalidate Neovim cache of loaded Lua modules
Browse files Browse the repository at this point in the history
  • Loading branch information
junegunn committed Feb 24, 2024
1 parent 3264b81 commit 2f8f04c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plug.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2f8f04c

Please sign in to comment.