mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-29 20:04:28 +02:00
41 lines
858 B
Nix
41 lines
858 B
Nix
|
{ lib, ... }:
|
||
|
let
|
||
|
oldPluginBasePath = [
|
||
|
"plugins"
|
||
|
"dap"
|
||
|
"extensions"
|
||
|
"dap-virtual-text"
|
||
|
];
|
||
|
newPluginBasePath = [
|
||
|
"plugins"
|
||
|
"dap-virtual-text"
|
||
|
];
|
||
|
|
||
|
settingsPath = newPluginBasePath ++ [ "settings" ];
|
||
|
|
||
|
renamedOptions = [
|
||
|
[ "enabledCommands" ]
|
||
|
[ "highlightChangedVariables" ]
|
||
|
[ "highlightNewAsChanged" ]
|
||
|
[ "showStopReason" ]
|
||
|
[ "commented" ]
|
||
|
[ "onlyFirstDefinition" ]
|
||
|
[ "allReferences" ]
|
||
|
[ "clearOnContinue" ]
|
||
|
[ "displayCallback" ]
|
||
|
[ "virtTextPos" ]
|
||
|
[ "allFrames" ]
|
||
|
[ "virtLines" ]
|
||
|
[ "virtTextWinCol" ]
|
||
|
];
|
||
|
|
||
|
renameWarnings =
|
||
|
lib.nixvim.mkSettingsRenamedOptionModules oldPluginBasePath settingsPath
|
||
|
renamedOptions;
|
||
|
in
|
||
|
{
|
||
|
imports = renameWarnings ++ [
|
||
|
(lib.mkRenamedOptionModule (oldPluginBasePath ++ [ "enable" ]) (newPluginBasePath ++ [ "enable" ]))
|
||
|
];
|
||
|
}
|