Skip to content

Commit

Permalink
helpers/neovim-plugin/mkSettingsOption: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Feb 7, 2024
1 parent eaa1736 commit 2e18333
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions lib/neovim-plugin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2e18333

Please sign in to comment.