mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-26 15:06:45 +00:00
visuals/indent-blankline: rename scope.showCurrContext to scope.enabled
This commit is contained in:
parent
39e9e60386
commit
4453d5c9dd
3 changed files with 10 additions and 10 deletions
|
@ -90,7 +90,7 @@ inputs: let
|
|||
fillChar = null;
|
||||
eolChar = null;
|
||||
scope = {
|
||||
showCurrContext = true;
|
||||
enabled = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -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}
|
||||
},
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue