mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 17:58:38 +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
30
tests/test-sources/plugins/by-name/dap-go/default.nix
Normal file
30
tests/test-sources/plugins/by-name/dap-go/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.dap-go.enable = true;
|
||||
};
|
||||
|
||||
default = {
|
||||
plugins.dap-go = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
dap_configurations = [
|
||||
{
|
||||
# Must be "go" or it will be ignored by the plugin
|
||||
type = "go";
|
||||
name = "Attach remote";
|
||||
mode = "remote";
|
||||
request = "attach";
|
||||
}
|
||||
];
|
||||
delve = {
|
||||
path = "dlv";
|
||||
initialize_timeout_sec = 20;
|
||||
port = "$\{port}";
|
||||
args = [ ];
|
||||
build_flags = "-tags=unit";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue