From 6c01f91fdf6cc490284501bc9ce4df1dd06c6fb5 Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Fri, 21 Jun 2024 17:16:35 +0100 Subject: [PATCH] fixup! lib/neovim-plugin: allow overriding settings description --- lib/neovim-plugin.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/neovim-plugin.nix b/lib/neovim-plugin.nix index f054936d1e..083300e41e 100644 --- a/lib/neovim-plugin.nix +++ b/lib/neovim-plugin.nix @@ -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 ? [ ], @@ -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; })