mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-22 21:30:51 +00:00
switch to other hacky array-table syntax
This commit is contained in:
parent
f632fa1a92
commit
9b4332ed77
1 changed files with 3 additions and 5 deletions
|
@ -3,18 +3,16 @@
|
|||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (builtins) toJSON;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.attrsets) mapAttrsToList;
|
||||
inherit (lib.generators) mkLuaInline;
|
||||
inherit (lib.nvim.lua) toLuaObject;
|
||||
inherit (lib.nvim.dag) entryAnywhere;
|
||||
cfg = config.vim.lazy;
|
||||
|
||||
toLznSpec = name: plugin:
|
||||
toLuaLznSpec = name: plugin:
|
||||
(removeAttrs plugin ["package"])
|
||||
// {__HACK = mkLuaInline "nil, [1] = ${toJSON name}";};
|
||||
lznSpecs = mapAttrsToList toLznSpec cfg.plugins;
|
||||
// {"@1" = name;};
|
||||
lznSpecs = mapAttrsToList toLuaLznSpec cfg.plugins;
|
||||
in {
|
||||
config.vim = mkIf cfg.enable {
|
||||
startPlugins = ["lz-n"];
|
||||
|
|
Loading…
Reference in a new issue