Skip to content

Commit 6c01f91

Browse files
committed
fixup! lib/neovim-plugin: allow overriding settings description
1 parent 27cca07 commit 6c01f91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/neovim-plugin.nix

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ with lib;
3737
defaultPackage,
3838
settingsOptions ? { },
3939
settingsExample ? null,
40-
settingsDescription ? "Options provided to the `require('${luaName}').${setupName}` function.",
40+
settingsDescription ? "Options provided to the `require('${luaName}')${setup}` function.",
4141
extraOptions ? { },
4242
# config
4343
luaName ? name,
44-
setupName ? "setup",
44+
setup ? ".setup",
4545
extraConfig ? cfg: { },
4646
extraPlugins ? [ ],
4747
extraPackages ? [ ],
@@ -107,7 +107,7 @@ with lib;
107107
inherit extraPackages;
108108

109109
${extraConfigNamespace} = optionalString callSetup ''
110-
require('${luaName}').setup(${toLuaObject cfg.settings})
110+
require('${luaName}')${setup}(${toLuaObject cfg.settings})
111111
'';
112112
}
113113
(optionalAttrs (isColorscheme && (colorscheme != null)) { colorscheme = mkDefault colorscheme; })

0 commit comments

Comments
 (0)