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