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