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