mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
42 lines
780 B
Nix
42 lines
780 B
Nix
|
{ lib, ... }:
|
||
|
let
|
||
|
oldPluginBasePath = [
|
||
|
"plugins"
|
||
|
"dap"
|
||
|
"extensions"
|
||
|
"dap-python"
|
||
|
];
|
||
|
newPluginBasePath = [
|
||
|
"plugins"
|
||
|
"dap-python"
|
||
|
];
|
||
|
|
||
|
settingsPath = newPluginBasePath ++ [ "settings" ];
|
||
|
|
||
|
renamedOptions = [
|
||
|
[ "enable" ]
|
||
|
[ "adapterPythonPath" ]
|
||
|
[ "customConfigurations" ]
|
||
|
[ "resolvePython" ]
|
||
|
[ "testRunner" ]
|
||
|
[ "testRunners" ]
|
||
|
];
|
||
|
|
||
|
renamedSettingsOptions = [
|
||
|
"console"
|
||
|
"includeConfigs"
|
||
|
];
|
||
|
|
||
|
renameWarnings =
|
||
|
lib.nixvim.mkSettingsRenamedOptionModules oldPluginBasePath settingsPath
|
||
|
renamedSettingsOptions;
|
||
|
in
|
||
|
{
|
||
|
imports =
|
||
|
renameWarnings
|
||
|
++ (map (
|
||
|
optionPath:
|
||
|
lib.mkRenamedOptionModule (oldPluginBasePath ++ optionPath) (newPluginBasePath ++ optionPath)
|
||
|
) renamedOptions);
|
||
|
}
|