utility/trim-nvim: init

This commit is contained in:
Ben Mayer 2025-03-17 13:05:47 +01:00
commit bc709de853
No known key found for this signature in database
7 changed files with 66 additions and 0 deletions

View file

@ -0,0 +1,24 @@
{lib, ...}: let
inherit (lib.options) mkOption mkEnableOption;
inherit (lib.types) listOf str bool;
inherit (lib.nvim.types) mkPluginSetupOption;
in {
options.vim.utility.trim-nvim = {
enable = mkEnableOption ''
automatic removal of trailing whitespaces and lines [trim-nvim]
'';
setupOpts = mkPluginSetupOption "trim-nvim" {
ft_blocklist = mkOption {
type = listOf str;
default = ["markdown"];
description = "List of filetypes to not trim";
};
highlight = mkOption {
type = bool;
default = false;
description = "Enable highlighting trailing spaces";
};
};
};
}