mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-27 02:59:00 +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
4bd021d25f
commit
a6eda59091
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