From ee60c4e8f127893788fadde155f514f162aa8d83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=91=D0=B5=D0=BB=D0=BE?= =?UTF-8?q?=D1=83=D1=81=D0=BE=D0=B2?= Date: Thu, 26 Feb 2026 09:55:03 +0300 Subject: [PATCH] Add debugger support to neovim --- home/neovim.nix | 73 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 72 insertions(+), 1 deletion(-) diff --git a/home/neovim.nix b/home/neovim.nix index e87878b..a467a05 100644 --- a/home/neovim.nix +++ b/home/neovim.nix @@ -37,6 +37,77 @@ indent.enable = true; }; harpoon.enable = true; + dap.enable = true; + dap-virtual-text.enable = true; + dap-view = { + enable = true; + settings = { + winbar = { + default_section = "scopes"; + }; + }; + }; + dap-python.enable = true; + hydra = { + enable = true; + hydras = [ + { + body = "d"; + config = { + color = "pink"; + hint = { + hide_on_load = true; + }; + on_enter = '' + function() + require("dap-view").open() + end + ''; + on_exit = '' + function() + require("dap-view").close() + end + ''; + }; + heads = [ + [ + "o" + "" + ] + [ + "c" + "DapContinue" + ] + [ + "b" + "DapToggleBreakpoint" + ] + [ + "n" + "DapStepOver" + ] + [ + "i" + "DapStepInto" + ] + [ + "x" + "DapDisconnect" + ] + [ + "t" + { + __raw = '' + function() + test_method() + end + ''; + } + ] + ]; + } + ]; + }; }; keymaps = [ { @@ -77,7 +148,7 @@ } { action = "lua vim.diagnostic.setqflist()"; - key = "d"; + key = "q"; } { action = "lua require('harpoon'):list():add()";