mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-07 07:44:33 +02:00
plugins/utils: move to by-name
This commit is contained in:
parent
faff32b9f1
commit
52f125679f
195 changed files with 2 additions and 102 deletions
36
tests/test-sources/plugins/by-name/trim/default.nix
Normal file
36
tests/test-sources/plugins/by-name/trim/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue