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.82k stars 266 forks source link

Remove redundant name check when registering a plugin #1018

Open svvac opened 2 years ago

svvac commented 2 years ago

name is equal to plugin_spec.as when the latter is set by get_plugin_short_name(). The conflict check against the alias is thus redundant.

Dropping this allows plugins to require aliased plugins, see #1017.

svvac commented 2 years ago

Or, if you prefer, guarding the second check as demonstrated in eae47319af7f3807390b801e3d5d7d8dba6503b2.