languages/html: reorder parameters for consistency

This commit is contained in:
Poseidon 2025-08-17 17:22:31 -05:00
commit b6ecc7f19c

View file

@ -49,9 +49,9 @@ in {
enable = mkEnableOption "HTML treesitter support" // {default = config.vim.languages.enableTreesitter;};
package = mkGrammarOption pkgs "html";
autotagHtml = mkOption {
description = "Enable autoclose/autorename of html tags (nvim-ts-autotag)";
type = bool;
default = true;
description = "Enable autoclose/autorename of html tags (nvim-ts-autotag)";
};
};
@ -68,15 +68,15 @@ in {
enable = mkEnableOption "HTML formatting" // {default = config.vim.languages.enableFormat;};
type = mkOption {
description = "HTML formatter to use";
type = enum (attrNames formats);
default = defaultFormat;
description = "HTML formatter to use";
};
package = mkOption {
description = "HTML formatter package";
type = package;
default = formats.${cfg.format.type}.package;
description = "HTML formatter package";
};
};