helpers/neovim-plugin/mkNeovimPlugin: add callSetup option (default true)

This commit is contained in:
Gaetan Lepage
2024-02-18 13:51:17 +01:00
committed by Gaétan Lepage
parent 2fe24d883e
commit 7f57d0b1b8
+2 -1
View File
@@ -45,6 +45,7 @@ with lib; rec {
extraConfig ? cfg: {},
extraPlugins ? [],
extraPackages ? [],
callSetup ? true,
}: {
meta.maintainers = maintainers;
@@ -73,7 +74,7 @@ with lib; rec {
extraPlugins = [cfg.package] ++ extraPlugins;
inherit extraPackages;
extraConfigLua = ''
extraConfigLua = optionalString callSetup ''
require('${luaName}').setup(${toLuaObject cfg.settings})
'';
}