From e0f8c8526a0ac50c627b729e30a26810fadadddd Mon Sep 17 00:00:00 2001 From: harry123 Date: Fri, 4 Jul 2025 15:24:14 +0200 Subject: [PATCH] more nvim-dap configuration --- config/keys.nix | 23 ++++++++++++++++++++++- config/plugins.nix | 9 ++++++++- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/config/keys.nix b/config/keys.nix index 1caa8aa..f085d95 100644 --- a/config/keys.nix +++ b/config/keys.nix @@ -76,7 +76,28 @@ }; } - # toggle comments + # nvim-dap + { + mode = "n"; + action = { + __raw = "function() require('dap').continue() end"; + }; + key = "dd"; + options = { + desc = "Start debugging session"; + }; + } + + { + mode = "n"; + action = { + __raw = "function() require"; + }; + key = "ds"; + options = { + desc = "Set breakpoint"; + }; + } ]; plugins.fzf-lua.keymaps = { diff --git a/config/plugins.nix b/config/plugins.nix index d1a83cf..e046ebb 100644 --- a/config/plugins.nix +++ b/config/plugins.nix @@ -103,6 +103,7 @@ chadtree = { enable = true; + keymap.openFileFolder.collapse = [ "l" ]; }; fzf-lua = { @@ -139,11 +140,17 @@ dap = { enable = true; adapters = { - executables = { }; + executables = { + on_config = { }; + }; servers = { }; }; }; + dap-ui = { + enable = true; + }; + dap-python = { enable = true; };