1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-12-05 16:41:06 +01:00

modules/files: drop coercedFileType

Defining `extraFiles.*` as a string was deprecated in 24.05, and has
printed a warning since 2024-07-07.

We can now drop support entirely and simplify the implementation.
This commit is contained in:
Matt Sturgeon 2025-12-03 07:17:59 +00:00 committed by Gaétan Lepage
parent b52b1fb4a4
commit 26d16c726d

View file

@ -88,15 +88,11 @@ let
modules = [ fileTypeModule ];
specialArgs.topConfig = config;
};
# TODO: Added 2024-07-07, remove after 24.11
# Before we had a fileType, we used types.str.
coercedFileType = lib.nixvim.transitionType lib.types.str (text: { inherit text; }) fileType;
in
{
options = {
extraFiles = lib.mkOption {
type = lib.types.attrsOf coercedFileType;
type = lib.types.attrsOf fileType;
description = "Extra files to add to the runtime path";
default = { };
example = lib.literalExpression ''