1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-08 11:36:07 +01:00

plugins/trim: remove settings declarations

Signed-off-by: saygo-png <saygo.mail@proton.me>
This commit is contained in:
saygo-png 2025-11-01 04:49:12 +01:00 committed by Matt Sturgeon
parent 034ae0e276
commit 4d4e437cca

View file

@ -1,60 +1,13 @@
{ {
lib, lib,
helpers,
... ...
}: }:
with lib;
lib.nixvim.plugins.mkNeovimPlugin { lib.nixvim.plugins.mkNeovimPlugin {
name = "trim"; name = "trim";
package = "trim-nvim"; package = "trim-nvim";
description = "This plugin trims trailing whitespace and lines."; description = "This plugin trims trailing whitespace and lines.";
maintainers = [ maintainers.GaetanLepage ]; maintainers = [ lib.maintainers.GaetanLepage ];
settingsOptions = {
ft_blocklist = helpers.defaultNullOpts.mkListOf types.str [ ] ''
Filetypes to exclude.
'';
patterns = mkOption {
type = with lib.types; listOf strLua;
default = [ ];
example = [ "[[%s/\(\n\n\)\n\+/\1/]]" ];
description = ''
Extra patterns to use for removing white spaces.
Plugin default: `[]`
'';
};
trim_on_write = helpers.defaultNullOpts.mkBool true ''
Whether to automatically trim on write.
'';
trim_trailing = helpers.defaultNullOpts.mkBool true ''
Whether to trim trailing whitespaces.
'';
trim_last_line = helpers.defaultNullOpts.mkBool true ''
Whether to trim trailing blank lines at the end of the file.
'';
trim_first_line = helpers.defaultNullOpts.mkBool true ''
Whether to trim blank lines at the beginning of the file.
'';
highlight = helpers.defaultNullOpts.mkBool false ''
Whether to highlight trailing whitespaces.
'';
highlight_bg = helpers.defaultNullOpts.mkStr "#ff0000" ''
Which color to use for coloring whitespaces.
'';
highlight_ctermbg = helpers.defaultNullOpts.mkStr "red" ''
Which color to use for coloring whitespaces (cterm).
'';
};
settingsExample = { settingsExample = {
ft_blocklist = [ "markdown" ]; ft_blocklist = [ "markdown" ];