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:
parent
b52b1fb4a4
commit
26d16c726d
1 changed files with 1 additions and 5 deletions
|
|
@ -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 ''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue