From baae94abb6a9a03914216f0f373b7b0f6b0207bd Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sat, 19 Sep 2026 01:40:50 +0530 Subject: 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). --- modules/development/nixvim/plugins/dap.nix | 81 ------------------------------ 1 file changed, 81 deletions(-) delete mode 100644 modules/development/nixvim/plugins/dap.nix (limited to 'modules/development/nixvim/plugins/dap.nix') 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 = "dc"; - action = "lua require('dap').continue()"; - options.desc = "Debug: Continue"; - } - { - mode = "n"; - key = "di"; - action = "lua require('dap').step_into()"; - options.desc = "Debug: Step Into"; - } - { - mode = "n"; - key = "do"; - action = "lua require('dap').step_over()"; - options.desc = "Debug: Step Over"; - } - { - mode = "n"; - key = "dO"; - action = "lua require('dap').step_out()"; - options.desc = "Debug: Step Out"; - } - { - mode = "n"; - key = "db"; - action = "lua require('dap').toggle_breakpoint()"; - options.desc = "Debug: Toggle Breakpoint"; - } - { - mode = "n"; - key = "dB"; - action = "lua require('dap').set_breakpoint(vim.fn.input('Breakpoint condition: '))"; - options.desc = "Debug: Conditional Breakpoint"; - } - { - mode = "n"; - key = "dl"; - action = "lua require('dap').run_last()"; - options.desc = "Debug: Run Last"; - } - { - mode = "n"; - key = "dt"; - action = "lua require('dap').terminate()"; - options.desc = "Debug: Terminate"; - } - { - mode = "n"; - key = "dr"; - action = "lua require('dap').repl.toggle()"; - 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 - ''; - }; -} -- cgit v1.2.3