Packer.nvim: "run" and support for vim commands

Created on 6 Jan 2021  路  3Comments  路  Source: wbthomason/packer.nvim

Hi!
I just started using packer.nvim and it is fantastic.
However, there is something I cannot find in the documentation, and I'm not sure packer has support for it.
In vim-plug, there is the Do action, to execute commands after a plugin is updated.
Here we have run.
The vim-plug counterpart has built-in support for vim commands. So if a command in Do starts with :, then it is recognized as a vim command.
I used this with Treesitter: Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}.
Does packer support this function?

All 3 comments

@bobicino the equivalent is run = ':TSUpdate'

Thanks a lot!
I thought it was like that but I wasn't sure.

This seems resolved (thanks, @akinsho!), so I'll go ahead and close the issue. Feel free to open it again or use the Discussion tab if you have other questions, etc.!

Was this page helpful?
0 / 5 - 0 ratings