mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-28 03:20:08 +02:00
helpers/neovim-plugin/mkNeovimPlugin: add callSetup option (default true)
This commit is contained in:
parent
2fe24d883e
commit
7f57d0b1b8
1 changed files with 2 additions and 1 deletions
|
@ -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})
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue