comment-nvim: change options

This commit is contained in:
Builditluc 2021-11-24 16:29:57 +01:00 committed by Pedro Alves
parent 1562144db5
commit d92199bd92

View file

@ -9,14 +9,14 @@ in
programs.nixvim.plugins.comment-nvim = { programs.nixvim.plugins.comment-nvim = {
enable = mkEnableOption "Enable comment-nvim"; enable = mkEnableOption "Enable comment-nvim";
padding = mkOption { padding = mkOption {
type = types.bool; type = types.nullOr types.bool;
description = "Add a space b/w comment and the line"; description = "Add a space b/w comment and the line";
default = true; default = null;
}; };
sticky = mkOption { sticky = mkOption {
type = types.bool; type = types.nullOr types.bool;
description = "Whether the cursor should stay at its position"; description = "Whether the cursor should stay at its position";
default = true; default = null;
}; };
ignore = mkOption { ignore = mkOption {
type = types.nullOr types.str; type = types.nullOr types.str;
@ -24,7 +24,7 @@ in
default = null; default = null;
}; };
toggler = mkOption { toggler = mkOption {
type = types.submodule { type = types.nullOr (types.submodule ({...}: {
options = { options = {
line = mkOption { line = mkOption {
type = types.str; type = types.str;
@ -37,12 +37,12 @@ in
default = "gbc"; default = "gbc";
}; };
}; };
}; }));
description = "LHS of toggle mappings in NORMAL + VISUAL mode"; description = "LHS of toggle mappings in NORMAL + VISUAL mode";
default = {}; default = null;
}; };
opleader = mkOption { opleader = mkOption {
type = types.submodule { type = types.nullOr (types.submodule ({...}: {
options = { options = {
line = mkOption { line = mkOption {
type = types.str; type = types.str;
@ -55,12 +55,12 @@ in
default = "gb"; default = "gb";
}; };
}; };
}; }));
description = "LHS of operator-pending mappings in NORMAL + VISUAL mode"; description = "LHS of operator-pending mappings in NORMAL + VISUAL mode";
default = {}; default = null;
}; };
mappings = mkOption { mappings = mkOption {
type = types.submodule { type = types.nullOr (types.submodule ({...}: {
options = { options = {
basic = mkOption { basic = mkOption {
type = types.bool; type = types.bool;
@ -80,9 +80,9 @@ in
default = false; default = false;
}; };
}; };
}; }));
description = "Create basic (operator-pending) and extended mappings for NORMAL + VISUAL mode"; description = "Create basic (operator-pending) and extended mappings for NORMAL + VISUAL mode";
default = {}; default = null;
}; };
}; };
}; };