plugins/trim: init

This commit is contained in:
Gaetan Lepage 2024-05-27 10:04:03 +02:00 committed by Gaétan Lepage
parent 1b892d0784
commit 0d745bdacf
3 changed files with 105 additions and 0 deletions

View file

@ -0,0 +1,36 @@
{
empty = {
plugins.trim.enable = true;
};
defaults = {
plugins.trim = {
enable = true;
settings = {
ft_blocklist = [ ];
patterns = [ ];
trim_on_write = true;
trim_trailing = true;
trim_last_line = true;
trim_first_line = true;
highlight = false;
highlight_bg = "#ff0000";
highlight_ctermbg = "red";
};
};
};
example = {
plugins.trim = {
enable = true;
settings = {
ft_blocklist = [ "markdown" ];
patterns = [ "[[%s/\(\n\n\)\n\+/\1/]]" ];
trim_on_write = false;
highlight = true;
};
};
};
}