mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
comment-nvim: change options
This commit is contained in:
parent
1562144db5
commit
d92199bd92
1 changed files with 13 additions and 13 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue