mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-27 22:24:37 +02:00
plugins/*: use new mkSettingsRenamedOptionModules
This commit is contained in:
parent
0ddf6e39ac
commit
c179d47d3d
37 changed files with 1176 additions and 1510 deletions
|
@ -21,30 +21,27 @@ mkExtension {
|
|||
"telescope"
|
||||
"extensions"
|
||||
];
|
||||
oldPath = telescopeExtensionsPath ++ [ "media_files" ];
|
||||
newPath = telescopeExtensionsPath ++ [ "media-files" ];
|
||||
in
|
||||
mapAttrsToList
|
||||
(
|
||||
oldOptionName: newOptionPath:
|
||||
mkRenamedOptionModule (
|
||||
telescopeExtensionsPath
|
||||
++ [
|
||||
"media_files"
|
||||
oldOptionName
|
||||
]
|
||||
) (telescopeExtensionsPath ++ [ "media-files" ] ++ newOptionPath)
|
||||
)
|
||||
lib.nixvim.mkSettingsRenamedOptionModules oldPath newPath [
|
||||
"enable"
|
||||
"package"
|
||||
{
|
||||
enable = [ "enable" ];
|
||||
package = [ "package" ];
|
||||
filetypes = [
|
||||
old = "filetypes";
|
||||
new = [
|
||||
"settings"
|
||||
"filetypes"
|
||||
];
|
||||
find_cmd = [
|
||||
}
|
||||
{
|
||||
old = "find_cmd";
|
||||
new = [
|
||||
"settings"
|
||||
"find_cmd"
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
|
||||
extraOptions = {
|
||||
dependencies =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue