nixvimConfigs/trovebelt/setups/debugging: init

We'll have more configs and setups for this one.
This commit is contained in:
Gabriel Arazas 2024-02-06 21:13:44 +08:00
parent be81eb2b5e
commit 5fd2dcb077
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
3 changed files with 45 additions and 0 deletions

View File

@ -5,6 +5,7 @@
config = { config = {
nixvimConfigs.trovebelt.setups = { nixvimConfigs.trovebelt.setups = {
debugging.enable = true;
lsp.enable = true; lsp.enable = true;
treesitter.enable = true; treesitter.enable = true;
ui.enable = true; ui.enable = true;

View File

@ -0,0 +1,43 @@
{ config, lib, ... }:
let
nixvimCfg = config.nixvimConfigs.trovebelt;
cfg = nixvimCfg.setups.debugging;
in
{
options.nixvimConfigs.trovebelt.setups.debugging.enable =
lib.mkEnableOption "debugging setup";
config = lib.mkIf cfg.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";
name = "lldb";
};
dart = {
command = "dart";
args = [ "debug_adapter" ];
};
flutter = {
command = "flutter";
args = [ "debug_adapter" ];
};
};
# Enable all of the debugging extensoins.
plugins.dap.extensions.dap-go.enable = true;
plugins.dap.extensions.dap-python.enable = true;
plugins.rustaceanvim.enable = true;
};
}

View File

@ -1,5 +1,6 @@
{ {
imports = [ imports = [
./setups/debugging.nix
./setups/lsp.nix ./setups/lsp.nix
./setups/treesitter.nix ./setups/treesitter.nix
./setups/ui.nix ./setups/ui.nix