mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
users/foo-dogsquared/programs/nixvim: add debugging setup
This commit is contained in:
parent
6d1cb78564
commit
0d0dd0541f
@ -0,0 +1,33 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Enable the main star of the show.
|
||||
plugins.dap.enable = true;
|
||||
|
||||
# All of the configurations that we typically/rarely needed.
|
||||
plugins.dap.adapters.executables = {
|
||||
gdb = {
|
||||
command = "gdb";
|
||||
args = [ "-i" "dap" ];
|
||||
};
|
||||
|
||||
lldb = {
|
||||
command = "lldb-dap";
|
||||
};
|
||||
|
||||
dart = {
|
||||
command = "dart";
|
||||
args = [ "debug_adapter" ];
|
||||
};
|
||||
|
||||
flutter = {
|
||||
command = "flutter";
|
||||
args = [ "debug_adapter" ];
|
||||
};
|
||||
};
|
||||
|
||||
# Enable a bunch of pre-configured configurations.
|
||||
plugins.dap.extensions.dap-go.enable = true;
|
||||
plugins.dap.extensions.dap-python.enable = true;
|
||||
plugins.rustaceanvim.enable = true;
|
||||
}
|
@ -15,7 +15,10 @@ in
|
||||
[
|
||||
./note-taking.nix
|
||||
]
|
||||
++ lib.optional userCfg.setups.development.enable ./lsp.nix;
|
||||
++ lib.optionals userCfg.setups.development.enable [
|
||||
./lsp.nix
|
||||
./dap.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user