From 4d4e437ccaf836725fcdce957d8eba2aaae32bb5 Mon Sep 17 00:00:00 2001 From: saygo-png Date: Sat, 1 Nov 2025 04:49:12 +0100 Subject: [PATCH] plugins/trim: remove settings declarations Signed-off-by: saygo-png --- plugins/by-name/trim/default.nix | 49 +------------------------------- 1 file changed, 1 insertion(+), 48 deletions(-) diff --git a/plugins/by-name/trim/default.nix b/plugins/by-name/trim/default.nix index c117ddc4..4412f6c5 100644 --- a/plugins/by-name/trim/default.nix +++ b/plugins/by-name/trim/default.nix @@ -1,60 +1,13 @@ { lib, - helpers, ... }: -with lib; lib.nixvim.plugins.mkNeovimPlugin { name = "trim"; package = "trim-nvim"; description = "This plugin trims trailing whitespace and lines."; - maintainers = [ 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). - ''; - }; + maintainers = [ lib.maintainers.GaetanLepage ]; settingsExample = { ft_blocklist = [ "markdown" ];