Skip to content

Commit bebac0e

Browse files
github-actions[bot]b-src
authored andcommitted
Auto generate docs
1 parent d992e87 commit bebac0e

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

doc/lazy-nix-helper.nvim.txt

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,13 @@ your nix config, it is recommended to reference the plugin names as output by
121121
your nix builds. - `auto_plugin_discovery`: when set to `true` enables the
122122
automatic plugin discovery originally included in Lazy-Nix-Helper. the
123123
automatic 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

Comments
 (0)