mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-09 03:56:05 +01:00
lib/plugins: infer packPathName
Signed-off-by: saygo-png <saygo.mail@proton.me>
This commit is contained in:
parent
c4b27080a6
commit
4cec67651a
3 changed files with 12 additions and 13 deletions
|
|
@ -15,7 +15,6 @@
|
|||
isColorscheme ? false,
|
||||
colorscheme ? name,
|
||||
# options
|
||||
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...}`
|
||||
|
|
@ -59,8 +58,8 @@ let
|
|||
{
|
||||
options = lib.setAttrByPath loc (
|
||||
{
|
||||
enable = lib.mkEnableOption packPathName;
|
||||
autoLoad = lib.nixvim.mkAutoLoadOption cfg packPathName;
|
||||
enable = lib.mkEnableOption name;
|
||||
autoLoad = lib.nixvim.mkAutoLoadOption cfg name;
|
||||
}
|
||||
// settingsOption
|
||||
// extraOptions
|
||||
|
|
@ -93,7 +92,7 @@ in
|
|||
imports
|
||||
++ [
|
||||
module
|
||||
(lib.nixvim.plugins.utils.mkPluginPackageModule { inherit loc packPathName package; })
|
||||
(lib.nixvim.plugins.utils.mkPluginPackageModule { inherit loc name package; })
|
||||
(lib.nixvim.plugins.utils.mkMetaModule {
|
||||
inherit
|
||||
loc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue