1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-13 05:56:08 +01:00
nixvim/tests/test-sources/plugins/by-name/trim/default.nix
saygo-png 79d53a50e2 tests: use __empty and __raw
Signed-off-by: saygo-png <saygo.mail@proton.me>
2025-11-05 21:26:13 +00:00

36 lines
683 B
Nix

{
empty = {
plugins.trim.enable = true;
};
defaults = {
plugins.trim = {
enable = true;
settings = {
ft_blocklist.__empty = { };
patterns.__empty = { };
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;
};
};
};
}