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.86k stars 267 forks source link

Allow unsetting the "cmd" option #1128

Open charludo opened 1 year ago

charludo commented 1 year ago

Describe the feature

It appears it's currently not possible to "unset" the cmd option. This would be very useful when overwriting (for example) a baseline config. For a concrete example of this situation, see: NvChad/NvChad#1255

As is apparent from that thread, some unexpected behaviour can happen when attempting to manually "reset" this option.

Suggestion

allow to pass cmd = nil to Packer in order to completely ignore the arg

siduck commented 1 year ago

@charludo no need to make an issue here, I provided the solution https://github.com/NvChad/NvChad/issues/1255#issuecomment-1314576934 so close the issue.

charludo commented 1 year ago

@charludo no need to make an issue here, I provided the solution NvChad/NvChad#1255 (comment) so close the issue.

Thanks again for the help over there!

I still think this would be a good idea though, since we shoudn't have to re-configure every set options in order to unset a single one. I'm leaving this open for now and let the maintainers decide.

EdenEast commented 1 year ago

This issue does not have anything to do with packer. Packer's interface is with the use function. Your issue is with the wrapper / interface of how nvchad works with its merging of plugins. There is nothing here related to packer and it's use function.