@@ -121,12 +121,13 @@ your nix config, it is recommended to reference the plugin names as output by
121121your nix builds. - `auto_plugin_discovery` : when set to `true` enables the
122122automatic plugin discovery originally included in Lazy-Nix-Helper. the
123123automatic plugin discovery is a nix anti-pattern and only works for a subset of
124- nix/nixos use cases and config arrangements. this option has been left in place
125- to let early adopters of Lazy-Nix-Helper keep their original configuration, but
126- it should be set to `false` for all new configurations - `input_plugin_table` :
127- the plugin table mapping plugin names to plugin paths generated by your nix
128- config. instructions for generating this table are provided in the NixOS
129- Configuration section
124+ nix/nixos use cases and config arrangements. since some neovim plugin packages
125+ have been moved to different package sets this will no longer work for every
126+ plugin. this option has been left in place to let early adopters of
127+ Lazy-Nix-Helper keep their original configuration, but it should be set to
128+ `false` for all new configurations - `input_plugin_table` : the plugin table
129+ mapping plugin names to plugin paths generated by your nix config. instructions
130+ for generating this table are provided in the NixOS Configuration section
130131
131132**Lazy-Nix-Helper’s own Nix Store Path**
132133
@@ -373,8 +374,10 @@ Generate the plugins table 5. Include the rest of your config files with
373374 sanitizePluginName = input:
374375 let
375376 name = lib.strings.getName input;
376- intermediate = lib.strings.removePrefix "vimplugin-" name;
377- result = lib.strings.removePrefix "lua5.1-" intermediate;
377+ vimplugin_removed = lib.strings.removePrefix "vimplugin-" name;
378+ luajit_removed = lib.strings.removePrefix "luajit2.1-" vimplugin_removed
379+ lua5_1_removed = lib.strings.removePrefix "lua5.1-" luajit_removed;
380+ result = lib.strings.removeSuffix "-scm" lua5_1_removed;
378381 in result;
379382
380383 pluginList = plugins: lib.strings.concatMapStrings (plugin: " [\"${sanitizePluginName plugin.name}\"] = \"${plugin.outPath} \",\n") plugins;
0 commit comments