wbthomason / packer.nvim

A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config
MIT License
7.72k stars 262 forks source link

Running multiple commands when updating a git plugin #1133

Open LordMZTE opened 1 year ago

LordMZTE commented 1 year ago

Describe the feature

I would like to execute multiple commands for updating a git plugin (instead of just the default command), but since packer currently seems to just split the arguments on spaces without allowing any sort of quoting, I'm unable to use a shell command to run multiple commands. As the string is always concatenated to the base command set in the config, I cannot use a table either (since concatenating tables is not allowed).

As for why I need to run multiple commands, I'm precompiling my plugins in-place, so before I pull the updates, I need to run git reset first to avoid conflicts.