mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-10 17:24:32 +02:00
49 lines
747 B
Nix
49 lines
747 B
Nix
|
{ lib, ... }:
|
||
|
let
|
||
|
oldPluginBasePath = [
|
||
|
"plugins"
|
||
|
"dap"
|
||
|
"extensions"
|
||
|
"dap-go"
|
||
|
];
|
||
|
newPluginBasePath = [
|
||
|
"plugins"
|
||
|
"dap-go"
|
||
|
];
|
||
|
|
||
|
settingsPath = newPluginBasePath ++ [ "settings" ];
|
||
|
|
||
|
renamedOptions = [
|
||
|
"dapConfigurations"
|
||
|
[
|
||
|
"delve"
|
||
|
"path"
|
||
|
]
|
||
|
[
|
||
|
"delve"
|
||
|
"initializeTimeoutSec"
|
||
|
]
|
||
|
[
|
||
|
"delve"
|
||
|
"port"
|
||
|
]
|
||
|
[
|
||
|
"delve"
|
||
|
"args"
|
||
|
]
|
||
|
[
|
||
|
"delve"
|
||
|
"buildFlags"
|
||
|
]
|
||
|
];
|
||
|
|
||
|
renameWarnings =
|
||
|
lib.nixvim.mkSettingsRenamedOptionModules oldPluginBasePath settingsPath
|
||
|
renamedOptions;
|
||
|
in
|
||
|
{
|
||
|
imports = renameWarnings ++ [
|
||
|
(lib.mkRenamedOptionModule (oldPluginBasePath ++ [ "enable" ]) (newPluginBasePath ++ [ "enable" ]))
|
||
|
];
|
||
|
}
|