helpers/neovim-plugin/mkSettingsOption: fix typo

This commit is contained in:
Gaetan Lepage 2024-02-07 14:21:11 +01:00 committed by Gaétan Lepage
parent eaa1736151
commit 2e18333dd2

View file

@ -3,26 +3,27 @@
nixvimOptions,
}:
with lib; {
mkSettingsOption = pluginName: options: {
type = with types;
submodule {
freeformType = with types; attrsOf anything;
inherit options;
};
description = ''
Options provided to the `require('${pluginName}').setup` function.
'';
default = {};
example = {
foo_bar = 42;
hostname = "localhost:8080";
callback.__raw = ''
function()
print('nixvim')
end
mkSettingsOption = pluginName: options:
mkOption {
type = with types;
submodule {
freeformType = with types; attrsOf anything;
inherit options;
};
description = ''
Options provided to the `require('${pluginName}').setup` function.
'';
default = {};
example = {
foo_bar = 42;
hostname = "localhost:8080";
callback.__raw = ''
function()
print('nixvim')
end
'';
};
};
};
extraOptionsOptions = {
extraOptions = mkOption {