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

This commit is contained in:
Gaetan Lepage 2024-02-16 18:36:33 +01:00 committed by Gaétan Lepage
parent 2fe24d883e
commit 7f57d0b1b8

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})
'';
}