mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 17:58:38 +02:00
plugins/telescope/extensions/media-files: add rename warnings
This commit is contained in:
parent
37b14144a3
commit
f4018967d4
1 changed files with 16 additions and 4 deletions
|
@ -15,10 +15,22 @@ with lib;
|
|||
defaultPackage = pkgs.vimPlugins.telescope-media-files-nvim;
|
||||
|
||||
# TODO: introduced 2024-03-24, remove on 2024-05-24
|
||||
optionsRenamedToSettings = [
|
||||
"filetypes"
|
||||
"find_cmd"
|
||||
];
|
||||
imports = let
|
||||
telescopeExtensionsPath = ["plugins" "telescope" "extensions"];
|
||||
in
|
||||
mapAttrsToList
|
||||
(
|
||||
oldOptionName: newOptionPath:
|
||||
mkRenamedOptionModule
|
||||
(telescopeExtensionsPath ++ ["media_files" oldOptionName])
|
||||
(telescopeExtensionsPath ++ ["media-files"] ++ newOptionPath)
|
||||
)
|
||||
{
|
||||
enable = ["enable"];
|
||||
package = ["package"];
|
||||
filetypes = ["settings" "filetypes"];
|
||||
find_cmd = ["settings" "find_cmd"];
|
||||
};
|
||||
|
||||
extraOptions = {
|
||||
dependencies = let
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue