packer.nvim icon indicating copy to clipboard operation
packer.nvim copied to clipboard

Allow unsetting the "cmd" option

Open charludo opened this issue 2 years ago • 3 comments

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

charludo avatar Nov 14 '22 18:11 charludo

@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.

siduck avatar Nov 15 '22 00:11 siduck

@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.

charludo avatar Nov 15 '22 08:11 charludo

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.

EdenEast avatar Nov 15 '22 19:11 EdenEast