plugins/indent-blankline: add extraOptions option + test

This commit is contained in:
Gaetan Lepage 2023-06-02 11:25:16 +02:00 committed by Gaétan Lepage
parent 7ad1288fdd
commit 1262c0d54f
2 changed files with 122 additions and 38 deletions

View file

@ -0,0 +1,66 @@
{
empty = {
plugins.indent-blankline.enable = true;
};
defaults = {
plugins.indent-blankline = {
enable = true;
char = "";
charBlankline = "";
charList = [];
charListBlankline = [];
charHighlightList = [];
spaceCharBlankline = " ";
spaceCharHighlightList = [];
spaceCharBlanklineHighlightList = [];
useTreesitter = false;
indentLevel = 10;
maxIndentIncrease = 10;
showFirstIndentLevel = true;
showTrailingBlanklineIndent = true;
showEndOfLine = false;
showFoldtext = true;
disableWithNolist = false;
filetype = [];
filetypeExclude = ["lspinfo" "packer" "checkhealth" "help" "man" ""];
buftypeExclude = ["terminal" "nofile" "quickfix" "prompt"];
bufnameExclude = [];
strictTabs = false;
showCurrentContext = false;
showCurrentContextStart = false;
showCurrentContextStartOnCurrentLine = true;
contextChar = "";
contextCharBlankline = "";
contextCharList = [];
contextCharListBlankline = [];
contextHighlightList = [];
charPriority = 1;
contextStartPriority = 10000;
contextPatterns = [
"class"
"^func"
"method"
"^if"
"while"
"for"
"with"
"try"
"except"
"arguments"
"argument_list"
"object"
"dictionary"
"element"
"table"
"tuple"
"do_block"
];
useTreesitterScope = false;
contextPatternHighlight = {};
viewportBuffer = 10;
disableWarningMessage = false;
};
};
}