mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
treewide: originalName -> packPathName
We used to only think of it as the plugin repo's name, but we have been needing to use it for the name of the plugin's packpath location.
This commit is contained in:
parent
e8e396558b
commit
a7012e7864
181 changed files with 194 additions and 194 deletions
|
@ -14,7 +14,7 @@
|
|||
isColorscheme ? false,
|
||||
colorscheme ? name,
|
||||
# options
|
||||
originalName ? name,
|
||||
packPathName ? name,
|
||||
# Can be a string, a list of strings, or a module option:
|
||||
# - A string will be intrpreted as `pkgs.vimPlugins.${package}`
|
||||
# - A list will be interpreted as a "pkgs path", e.g. `pkgs.${elem1}.${elem2}.${etc...}`
|
||||
|
@ -77,12 +77,12 @@
|
|||
|
||||
options.${namespace}.${name} =
|
||||
{
|
||||
enable = lib.mkEnableOption originalName;
|
||||
enable = lib.mkEnableOption packPathName;
|
||||
package =
|
||||
if lib.isOption package then
|
||||
package
|
||||
else
|
||||
lib.mkPackageOption pkgs originalName {
|
||||
lib.mkPackageOption pkgs packPathName {
|
||||
default =
|
||||
if builtins.isList package then
|
||||
package
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue