aboutsummaryrefslogtreecommitdiffstats
path: root/modules/development/nixvim/plugins/dap.nix
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar@gmail.com>2026-09-19 01:40:50 +0530
committerArpit Chakladar <arpitchakladar@gmail.com>2026-09-19 01:40:50 +0530
commitbaae94abb6a9a03914216f0f373b7b0f6b0207bd (patch)
tree34f0b938f0b34b0c3723ed929246f71f9a2d396e /modules/development/nixvim/plugins/dap.nix
parent6b0161b2639bb49e270754e90f4f8a47311c5198 (diff)
downloadhome-manager-config-baae94abb6a9a03914216f0f373b7b0f6b0207bd.tar.gz
home-manager-config-baae94abb6a9a03914216f0f373b7b0f6b0207bd.zip
chore: removed all raw string configurations options in favor of files
Moved all configurations which were previously raw strings chunks, for options that the home-manager options didn't provide, into files for that specific configuration and reading there contents instead (with string replacement for passing information from the rest of the configuration).
Diffstat (limited to 'modules/development/nixvim/plugins/dap.nix')
-rw-r--r--modules/development/nixvim/plugins/dap.nix81
1 files changed, 0 insertions, 81 deletions
diff --git a/modules/development/nixvim/plugins/dap.nix b/modules/development/nixvim/plugins/dap.nix
deleted file mode 100644
index 02bffa6..0000000
--- a/modules/development/nixvim/plugins/dap.nix
+++ /dev/null
@@ -1,81 +0,0 @@
-# Debug Adapter Protocol client implementation for Neovim.
-{ config, lib, ... }:
-{
- config.programs.nixvim = lib.mkIf config.development.nixvim.enable {
- plugins.dap = {
- enable = true;
- };
-
- keymaps = [
- # Core DAP controls
- {
- mode = "n";
- key = "<leader>dc";
- action = "<cmd>lua require('dap').continue()<CR>";
- options.desc = "Debug: Continue";
- }
- {
- mode = "n";
- key = "<leader>di";
- action = "<cmd>lua require('dap').step_into()<CR>";
- options.desc = "Debug: Step Into";
- }
- {
- mode = "n";
- key = "<leader>do";
- action = "<cmd>lua require('dap').step_over()<CR>";
- options.desc = "Debug: Step Over";
- }
- {
- mode = "n";
- key = "<leader>dO";
- action = "<cmd>lua require('dap').step_out()<CR>";
- options.desc = "Debug: Step Out";
- }
- {
- mode = "n";
- key = "<leader>db";
- action = "<cmd>lua require('dap').toggle_breakpoint()<CR>";
- options.desc = "Debug: Toggle Breakpoint";
- }
- {
- mode = "n";
- key = "<leader>dB";
- action = "<cmd>lua require('dap').set_breakpoint(vim.fn.input('Breakpoint condition: '))<CR>";
- options.desc = "Debug: Conditional Breakpoint";
- }
- {
- mode = "n";
- key = "<leader>dl";
- action = "<cmd>lua require('dap').run_last()<CR>";
- options.desc = "Debug: Run Last";
- }
- {
- mode = "n";
- key = "<leader>dt";
- action = "<cmd>lua require('dap').terminate()<CR>";
- options.desc = "Debug: Terminate";
- }
- {
- mode = "n";
- key = "<leader>dr";
- action = "<cmd>lua require('dap').repl.toggle()<CR>";
- options.desc = "Debug: Toggle REPL";
- }
- ];
-
- # Auto open/close dap-ui with the debug session lifecycle
- extraConfigLua = ''
- local dap, dapui = require("dap"), require("dapui")
- dap.listeners.after.event_initialized["dapui_config"] = function()
- dapui.open()
- end
- dap.listeners.before.event_terminated["dapui_config"] = function()
- dapui.close()
- end
- dap.listeners.before.event_exited["dapui_config"] = function()
- dapui.close()
- end
- '';
- };
-}