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()";