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 7d38a22 commit 9e7787c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plug.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ endfunction

function! s:do(pull, force, todo)
if has('nvim')
" Reset &rtp to invalidate Neovim cache of Lua modules
" 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
Expand Down

0 comments on commit 9e7787c

Please sign in to comment.