From 2e18333dd2c696241cde0f6aa0632738dff10c15 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 7 Feb 2024 14:21:11 +0100 Subject: [PATCH] helpers/neovim-plugin/mkSettingsOption: fix typo --- lib/neovim-plugin.nix | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/lib/neovim-plugin.nix b/lib/neovim-plugin.nix index 5ab9df5d..be47bddc 100644 --- a/lib/neovim-plugin.nix +++ b/lib/neovim-plugin.nix @@ -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 {