mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-10 17:24:32 +02:00
plugins/dap-go: add buildFlags option
This commit is contained in:
parent
2fcbe50f4b
commit
356e0e855b
2 changed files with 4 additions and 0 deletions
|
@ -31,6 +31,8 @@ in {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
args = helpers.mkNullOrOption (types.listOf types.str) "Additional args to pass to dlv.";
|
args = helpers.mkNullOrOption (types.listOf types.str) "Additional args to pass to dlv.";
|
||||||
|
|
||||||
|
buildFlags = helpers.defaultNullOpts.mkStr "" "Build flags to pass to dlv.";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -41,6 +43,7 @@ in {
|
||||||
delve = with delve; {
|
delve = with delve; {
|
||||||
inherit path port args;
|
inherit path port args;
|
||||||
initialize_timeout_sec = initializeTimeoutSec;
|
initialize_timeout_sec = initializeTimeoutSec;
|
||||||
|
build_flags = buildFlags;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
initializeTimeoutSec = 20;
|
initializeTimeoutSec = 20;
|
||||||
port = "$\{port}";
|
port = "$\{port}";
|
||||||
args = [];
|
args = [];
|
||||||
|
buildFlags = "-tags=unit";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue