1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-12-05 08:31:05 +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 ]; modules = [ fileTypeModule ];
specialArgs.topConfig = config; 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 in
{ {
options = { options = {
extraFiles = lib.mkOption { extraFiles = lib.mkOption {
type = lib.types.attrsOf coercedFileType; type = lib.types.attrsOf fileType;
description = "Extra files to add to the runtime path"; description = "Extra files to add to the runtime path";
default = { }; default = { };
example = lib.literalExpression '' example = lib.literalExpression ''