mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-13 10:44:34 +02:00
plugins/dap-go: migrate to mkNeovimPlugin
This commit is contained in:
parent
4d1bd375c7
commit
6ff7127291
6 changed files with 131 additions and 98 deletions
48
plugins/by-name/dap-go/deprecations.nix
Normal file
48
plugins/by-name/dap-go/deprecations.nix
Normal file
|
@ -0,0 +1,48 @@
|
|||
{ 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" ]))
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue