mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
41 lines
780 B
Nix
41 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);
|
|
}
|