mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 09:18:38 +02:00
plugins/dap-python: migrate to mkNeovimPlugin
This commit is contained in:
parent
6ff7127291
commit
a70168e0fa
5 changed files with 151 additions and 109 deletions
41
plugins/by-name/dap-python/deprecations.nix
Normal file
41
plugins/by-name/dap-python/deprecations.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{ 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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue