mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-12-20 10:51:17 +00:00
24 lines
667 B
Nix
24 lines
667 B
Nix
{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";
|
|
};
|
|
};
|
|
};
|
|
}
|