docs: fix mkEnableOption usage for autogenerated documentation

This commit is contained in:
NotAShelf 2023-06-05 23:10:25 +03:00
commit a2b58e17af
No known key found for this signature in database
GPG key ID: F0D14CCB5ED5AA22
55 changed files with 225 additions and 333 deletions

View file

@ -96,11 +96,8 @@ in {
};
lsp = {
enable = mkOption {
description = "Enable Nix LSP support";
type = types.bool;
default = config.vim.languages.enableLSP;
};
enable = mkEnableOption "Enable Nix LSP support" // {default = config.vim.languages.enableLSP;};
server = mkOption {
description = "Nix LSP server to use";
type = types.str;
@ -114,11 +111,8 @@ in {
};
format = {
enable = mkOption {
description = "Enable Nix formatting";
type = types.bool;
default = config.vim.languages.enableFormat;
};
enable = mkEnableOption "Enable Nix formatting" // {default = config.vim.languages.enableFormat;};
type = mkOption {
description = "Nix formatter to use";
type = with types; enum (attrNames formats);