From ab24a41ada18e37c1370985ddc06dbe9927be3a4 Mon Sep 17 00:00:00 2001 From: Heitor Augusto Date: Thu, 8 May 2025 18:36:12 -0300 Subject: [PATCH] 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. --- plugins/pluginmanagers/lz-n.nix | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/plugins/pluginmanagers/lz-n.nix b/plugins/pluginmanagers/lz-n.nix index 7aff86b8..d5097f2f 100644 --- a/plugins/pluginmanagers/lz-n.nix +++ b/plugins/pluginmanagers/lz-n.nix @@ -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 (