mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-04-24 06:19:11 +00:00
nixvimConfigs/trovebelt/setups/debugging: init
We'll have more configs and setups for this one.
This commit is contained in:
parent
be81eb2b5e
commit
5fd2dcb077
@ -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;
|
||||||
|
43
configs/nixvim/trovebelt/modules/debugging.nix
Normal file
43
configs/nixvim/trovebelt/modules/debugging.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user