nix-community.nixvim/tests/test-sources/plugins/utils/indent-blankline.nix
2024-03-25 23:48:58 +01:00

100 lines
2 KiB
Nix

{
empty = {
plugins.indent-blankline.enable = true;
};
example = {
plugins.indent-blankline = {
enable = true;
settings = {
indent = {
char = "";
};
scope = {
show_start = false;
show_end = false;
show_exact_scope = true;
};
exclude = {
filetypes = [
""
"checkhealth"
"help"
"lspinfo"
"packer"
"TelescopePrompt"
"TelescopeResults"
"yaml"
];
buftypes = ["terminal" "quickfix"];
};
};
};
};
defaults = {
plugins.indent-blankline = {
enable = true;
settings = {
debounce = 200;
viewport_buffer = {
min = 30;
max = 500;
};
indent = {
char = "";
tab_char = null;
highlight = null;
smart_indent_cap = true;
priority = 1;
};
whitespace = {
highlight = null;
remove_blankline_trail = true;
};
scope = {
enabled = true;
char = null;
show_start = true;
show_end = true;
show_exact_scope = false;
injected_languages = true;
highlight = null;
priority = 1024;
include = {
node_type = {};
};
exclude = {
language = [];
node_type = {
"*" = ["source_file" "program"];
lua = ["chunk"];
python = ["module"];
};
};
};
exclude = {
filetypes = [
"lspinfo"
"packer"
"checkhealth"
"help"
"man"
"gitcommit"
"TelescopePrompt"
"TelescopeResults"
"\'\'"
];
buftypes = [
"terminal"
"nofile"
"quickfix"
"prompt"
];
};
};
};
};
}