mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-29 12:00:04 +02:00
plugins/*: use new mkSettingsRenamedOptionModules
This commit is contained in:
parent
0ddf6e39ac
commit
c179d47d3d
37 changed files with 1176 additions and 1510 deletions
|
@ -26,14 +26,7 @@ let
|
|||
];
|
||||
settingsPath = basePluginPath ++ [ "settings" ];
|
||||
in
|
||||
builtins.map (
|
||||
option:
|
||||
let
|
||||
optionPath = lib.toList option;
|
||||
optionPathSnakeCase = map lib.nixvim.toSnakeCase optionPath;
|
||||
in
|
||||
lib.mkRenamedOptionModule (basePluginPath ++ optionPath) (settingsPath ++ optionPathSnakeCase)
|
||||
) optionsRenamedToSettings;
|
||||
lib.nixvim.mkSettingsRenamedOptionModules basePluginPath settingsPath optionsRenamedToSettings;
|
||||
};
|
||||
|
||||
module =
|
||||
|
|
|
@ -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