Closed ubaldot closed 1 month ago
My .vimrc is Vim9-syntax, but I am having troubles with lambda functions.
.vimrc
For example:
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
should be:
Plug 'junegunn/fzf', { 'do': () => fzf#install() }
But it does not work:
E15: Invalid expression: ") => vimspectorpy#update() })" E116: Invalid arguments for function plug#
vim-plug is written is legacy-vim language, and what is specified as option is a dict. Hence, the lamdba definition shall follow the legacy format.
My
.vimrc
is Vim9-syntax, but I am having troubles with lambda functions.For example:
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
should be:
Plug 'junegunn/fzf', { 'do': () => fzf#install() }
But it does not work: