mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 08:53:28 +02:00
helpers/neovim-plugin/mkSettingsOption: fix typo
This commit is contained in:
parent
eaa1736151
commit
2e18333dd2
1 changed files with 19 additions and 18 deletions
|
@ -3,26 +3,27 @@
|
||||||
nixvimOptions,
|
nixvimOptions,
|
||||||
}:
|
}:
|
||||||
with lib; {
|
with lib; {
|
||||||
mkSettingsOption = pluginName: options: {
|
mkSettingsOption = pluginName: options:
|
||||||
type = with types;
|
mkOption {
|
||||||
submodule {
|
type = with types;
|
||||||
freeformType = with types; attrsOf anything;
|
submodule {
|
||||||
inherit options;
|
freeformType = with types; attrsOf anything;
|
||||||
};
|
inherit options;
|
||||||
description = ''
|
};
|
||||||
Options provided to the `require('${pluginName}').setup` function.
|
description = ''
|
||||||
'';
|
Options provided to the `require('${pluginName}').setup` function.
|
||||||
default = {};
|
|
||||||
example = {
|
|
||||||
foo_bar = 42;
|
|
||||||
hostname = "localhost:8080";
|
|
||||||
callback.__raw = ''
|
|
||||||
function()
|
|
||||||
print('nixvim')
|
|
||||||
end
|
|
||||||
'';
|
'';
|
||||||
|
default = {};
|
||||||
|
example = {
|
||||||
|
foo_bar = 42;
|
||||||
|
hostname = "localhost:8080";
|
||||||
|
callback.__raw = ''
|
||||||
|
function()
|
||||||
|
print('nixvim')
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
extraOptionsOptions = {
|
extraOptionsOptions = {
|
||||||
extraOptions = mkOption {
|
extraOptions = mkOption {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue