我的 lua 文件中有这个并且它可以工作:
{
"vim-perl/vim-perl",
lazy = true,
ft = "perl",
},
vim-perl 插件 显示了使用 vim-plug 时的示例:
call plug#begin('~/.vim/plugged')
Plug 'vim-perl/vim-perl', { 'for': 'perl', 'do': 'make clean carp dancer highlight-all-pragmas moose test-more try-tiny' }
call plug#end()
如何使用惰性 vim 插件管理器实现“do”命令?
使用
lazy.vim
,您可以为插件添加 build
函数,该函数在安装或更新插件时执行。有关详细信息,请参阅 lazy.vim
文档。
{
"vim-perl/vim-perl",
lazy = true,
ft = "perl",
build = "make clean carp dancer highlight-all-pragmas moose test-more try-tiny",
},