mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-10 01:04:34 +02:00
plugins/dap-ui: migrate to mkNeovimPlugin
This commit is contained in:
parent
a70168e0fa
commit
9eae5db29a
5 changed files with 253 additions and 172 deletions
126
plugins/by-name/dap-ui/deprecations.nix
Normal file
126
plugins/by-name/dap-ui/deprecations.nix
Normal file
|
@ -0,0 +1,126 @@
|
|||
{ lib, ... }:
|
||||
let
|
||||
oldPluginBasePath = [
|
||||
"plugins"
|
||||
"dap"
|
||||
"extensions"
|
||||
"dap-ui"
|
||||
];
|
||||
newPluginBasePath = [
|
||||
"plugins"
|
||||
"dap-ui"
|
||||
];
|
||||
|
||||
settingsPath = newPluginBasePath ++ [ "settings" ];
|
||||
|
||||
renamedOptions = [
|
||||
[
|
||||
"controls"
|
||||
"enabled"
|
||||
]
|
||||
[
|
||||
"controls"
|
||||
"element"
|
||||
]
|
||||
[
|
||||
"controls"
|
||||
"icons"
|
||||
"disconnect"
|
||||
]
|
||||
[
|
||||
"controls"
|
||||
"icons"
|
||||
"pause"
|
||||
]
|
||||
[
|
||||
"controls"
|
||||
"icons"
|
||||
"play"
|
||||
]
|
||||
[
|
||||
"controls"
|
||||
"icons"
|
||||
"run_last"
|
||||
]
|
||||
[
|
||||
"controls"
|
||||
"icons"
|
||||
"step_into"
|
||||
]
|
||||
[
|
||||
"controls"
|
||||
"icons"
|
||||
"step_over"
|
||||
]
|
||||
[
|
||||
"controls"
|
||||
"icons"
|
||||
"step_out"
|
||||
]
|
||||
[
|
||||
"controls"
|
||||
"icons"
|
||||
"step_back"
|
||||
]
|
||||
[
|
||||
"controls"
|
||||
"icons"
|
||||
"terminate"
|
||||
]
|
||||
[ "elementMappings" ]
|
||||
[ "expandLines" ]
|
||||
[
|
||||
"floating"
|
||||
"maxHeight"
|
||||
]
|
||||
[
|
||||
"floating"
|
||||
"maxWidth"
|
||||
]
|
||||
[
|
||||
"floating"
|
||||
"border"
|
||||
]
|
||||
[
|
||||
"floating"
|
||||
"mappings"
|
||||
]
|
||||
[ "forceBuffers" ]
|
||||
[
|
||||
"icons"
|
||||
"collapsed"
|
||||
]
|
||||
[
|
||||
"icons"
|
||||
"current_frame"
|
||||
]
|
||||
[
|
||||
"icons"
|
||||
"expanded"
|
||||
]
|
||||
[ "layouts" ]
|
||||
[ "mappings" ]
|
||||
[
|
||||
"render"
|
||||
"indent"
|
||||
]
|
||||
[
|
||||
"render"
|
||||
"maxTypeLength"
|
||||
]
|
||||
[
|
||||
"render"
|
||||
"maxValueLines"
|
||||
]
|
||||
[ "selectWindow" ]
|
||||
];
|
||||
|
||||
renameWarnings =
|
||||
lib.nixvim.mkSettingsRenamedOptionModules oldPluginBasePath settingsPath
|
||||
renamedOptions;
|
||||
in
|
||||
{
|
||||
imports = renameWarnings ++ [
|
||||
(lib.mkRenamedOptionModule (oldPluginBasePath ++ [ "enable" ]) (newPluginBasePath ++ [ "enable" ]))
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue