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; };