Skip to content

Commit

Permalink
fixup! lib/neovim-plugin: allow overriding settings description
Browse files Browse the repository at this point in the history
  • Loading branch information
MattSturgeon committed Jun 21, 2024
1 parent 27cca07 commit 6c01f91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/neovim-plugin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ with lib;
defaultPackage,
settingsOptions ? { },
settingsExample ? null,
settingsDescription ? "Options provided to the `require('${luaName}').${setupName}` function.",
settingsDescription ? "Options provided to the `require('${luaName}')${setup}` function.",
extraOptions ? { },
# config
luaName ? name,
setupName ? "setup",
setup ? ".setup",
extraConfig ? cfg: { },
extraPlugins ? [ ],
extraPackages ? [ ],
Expand Down Expand Up @@ -107,7 +107,7 @@ with lib;
inherit extraPackages;

${extraConfigNamespace} = optionalString callSetup ''
require('${luaName}').setup(${toLuaObject cfg.settings})
require('${luaName}')${setup}(${toLuaObject cfg.settings})
'';
}
(optionalAttrs (isColorscheme && (colorscheme != null)) { colorscheme = mkDefault colorscheme; })
Expand Down

0 comments on commit 6c01f91

Please sign in to comment.