mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
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:
parent
d0b88432c9
commit
ab24a41ada
1 changed files with 3 additions and 7 deletions
|
@ -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 (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue