Do not remove 'frozen' plugins on PlugClean

Close #1152
This commit is contained in:
Junegunn Choi
2024-03-31 00:53:55 +09:00
parent 24d7ac280f
commit d977fa3786
4 changed files with 25 additions and 17 deletions

View File

@@ -804,6 +804,14 @@ Execute (Check &rtp after SomeCommand):
AssertEqual g:first_rtp, split(&rtp, ',')[0]
AssertEqual g:last_rtp, split(&rtp, ',')[-1]
Execute (PlugClean should not care about frozen plugins):
call plug#begin()
Plug 'xxx/vim-easy-align', { 'frozen': 1 }
call plug#end()
PlugClean
AssertExpect 'Already clean', 1
q
Execute (Common parent):
call plug#begin()
Plug 'junegunn/vim-pseudocl'