46 lines
922 B
Nix
46 lines
922 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
options = {
|
|
indent-blankline.enable = lib.mkEnableOption "Enable indent-blankline module";
|
|
};
|
|
config = lib.mkIf config.indent-blankline.enable {
|
|
plugins = {
|
|
indent-blankline = {
|
|
enable = true;
|
|
settings = {
|
|
indent = {
|
|
char = "│"; # "│" or "▎"
|
|
};
|
|
scope = {
|
|
enabled = true;
|
|
show_start = true;
|
|
};
|
|
exclude = {
|
|
buftypes = [
|
|
"terminal"
|
|
"nofile"
|
|
];
|
|
filetypes = [
|
|
"help"
|
|
"alpha"
|
|
"dashboard"
|
|
"neo-tree"
|
|
"Trouble"
|
|
"trouble"
|
|
"lazy"
|
|
"mason"
|
|
"notify"
|
|
"toggleterm"
|
|
"lazyterm"
|
|
"nvterm"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|