plugins/lz-n: update references to options

Update the extraConfig function to access settings through opts parameter
instead of direct import. Also remove the unused options import for cleaner code.
This commit is contained in:
Heitor Augusto 2025-05-08 18:36:12 -03:00
parent d0b88432c9
commit ab24a41ada
No known key found for this signature in database
GPG key ID: 53C04F8F46A1A344

View file

@ -1,8 +1,4 @@
{
lib,
options,
...
}:
{ lib, ... }:
let
inherit (lib)
id
@ -243,8 +239,8 @@ lib.nixvim.plugins.mkNeovimPlugin {
};
};
extraConfig = cfg: {
globals.lz_n = lib.modules.mkAliasAndWrapDefsWithPriority id options.plugins.lz-n.settings;
extraConfig = cfg: opts: {
globals.lz_n = lib.modules.mkAliasAndWrapDefsWithPriority id opts.settings;
plugins.lz-n.luaConfig.content = mkMerge (
optional (cfg.plugins != [ ]) "require('lz.n').load(${toLuaObject cfg.plugins})"
++ map (