mirror of
https://github.com/nix-community/nixvim.git
synced 2025-12-02 15:11:05 +01:00
Instead of automatically enabling `plugins.dap`, require users to explicitly enable it. This prevents silent re-enabling of dap when a user has explicitly disabled it.
32 lines
657 B
Nix
32 lines
657 B
Nix
{
|
|
empty = {
|
|
plugins.dap.enable = true;
|
|
plugins.dap-go.enable = true;
|
|
};
|
|
|
|
default = {
|
|
plugins.dap.enable = true;
|
|
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.__empty = { };
|
|
build_flags = "-tags=unit";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|