visuals/indent-blankline: rename scope.showCurrContext to scope.enabled

This commit is contained in:
Frothy 2023-11-24 12:05:19 +03:00 committed by NotAShelf
parent 39e9e60386
commit 4453d5c9dd
No known key found for this signature in database
GPG Key ID: 02D1DD3FA08B6B29
3 changed files with 10 additions and 10 deletions

View File

@ -90,7 +90,7 @@ inputs: let
fillChar = null;
eolChar = null;
scope = {
showCurrContext = true;
enabled = true;
};
};

View File

@ -33,7 +33,7 @@ in {
},
scope = {
enabled = ${boolToString cfg.indentBlankline.scope.showCurrContext},
enabled = ${boolToString cfg.indentBlankline.scope.enabled},
show_end = ${boolToString cfg.indentBlankline.scope.showEndOfLine}
},
}

View File

@ -8,7 +8,7 @@
cfg = config.vim.visuals;
in {
imports = [
(mkRenamedOptionModule ["vim" "visuals" "indentBlankline" "showCurrContext"] ["vim" "visuals" "indentBlankline" "scope" "showCurrContext"])
(mkRenamedOptionModule ["vim" "visuals" "indentBlankline" "showCurrContext"] ["vim" "visuals" "indentBlankline" "scope" "enabled"])
(mkRenamedOptionModule ["vim" "visuals" "indentBlankline" "showEndOfLine"] ["vim" "visuals" "indentBlankline" "scope" "showEndOfLine"])
(mkRemovedOptionModule ["vim" "visuals" "indentBlankline" "useTreesitter"] "`vim.visuals.indentBlankline.useTreesitter` has been removed upstream and can safely be removed from your configuration.")
];
@ -115,6 +115,13 @@ in {
};
scope = {
enabled = mkOption {
description = "Highlight current scope from treesitter";
type = types.bool;
default = config.vim.treesitter.enable;
defaultText = literalExpression "config.vim.treesitter.enable";
};
showEndOfLine = mkOption {
description = ''
Displays the end of line character set by [](#opt-vim.visuals.indentBlankline.eolChar) instead of the
@ -124,13 +131,6 @@ in {
default = cfg.indentBlankline.eolChar != null;
defaultText = literalExpression "config.vim.visuals.indentBlankline.eolChar != null";
};
showCurrContext = mkOption {
description = "Highlight current context from treesitter";
type = types.bool;
default = config.vim.treesitter.enable;
defaultText = literalExpression "config.vim.treesitter.enable";
};
};
};