mirror of
https://github.com/nix-community/nixvim.git
synced 2026-09-26 17:20:28 -04:00
helpers/neovim-plugin/mkNeovimPlugin: add callSetup option (default true)
This commit is contained in:
committed by
Gaétan Lepage
parent
2fe24d883e
commit
7f57d0b1b8
@@ -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})
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user