From fcc360c3ceca1730ee8c4176bd41c9ac9b1f779b Mon Sep 17 00:00:00 2001 From: Ching Pei Yang <59727193+horriblename@users.noreply.github.com> Date: Sat, 3 Aug 2024 22:28:51 +0200 Subject: [PATCH] wrapper: use lzn-auto-require loader --- modules/wrapper/rc/config.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/wrapper/rc/config.nix b/modules/wrapper/rc/config.nix index 7457d459..de79b93d 100644 --- a/modules/wrapper/rc/config.nix +++ b/modules/wrapper/rc/config.nix @@ -4,9 +4,8 @@ ... }: let inherit (builtins) map mapAttrs filter; - inherit (lib.options) mkOption; - inherit (lib.attrsets) mapAttrsToList filterAttrs getAttrs attrValues attrNames; - inherit (lib.strings) concatLines concatMapStringsSep; + inherit (lib.attrsets) mapAttrsToList filterAttrs attrsToList; + inherit (lib.strings) concatLines concatMapStringsSep optionalString; inherit (lib.trivial) showWarnings; inherit (lib.generators) mkLuaInline; inherit (lib.nvim.dag) entryAfter mkLuarcSection resolveDag entryAnywhere; @@ -55,6 +54,8 @@ in { pluginConfigs = entryAfter ["theme"] pluginConfigs; extraPluginConfigs = entryAfter ["pluginConfigs"] extraPluginConfigs; mappings = entryAfter ["extraPluginConfigs"] keymaps; + # FIXME: put this somewhere less stupid + footer = entryAfter ["mappings"] (optionalString config.vim.lazy.enable "require('lzn-auto-require.loader').register_loader()"); }; builtLuaConfigRC = let