From 2bb62c8dd42329b4cd649821776a224cad77fd99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Thu, 26 Oct 2023 00:46:53 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(nvim):=20kitty=20terminal=20ad?= =?UTF-8?q?ded=20as=20a=20fallback=20for=20dap;=20also=20added=20mappings?= =?UTF-8?q?=20for=20the=20F=20keys=20when=20debugging?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/lua/plugins/dap.lua | 50 ++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .config/nvim/lua/plugins/dap.lua diff --git a/.config/nvim/lua/plugins/dap.lua b/.config/nvim/lua/plugins/dap.lua new file mode 100644 index 00000000..c35ce4f9 --- /dev/null +++ b/.config/nvim/lua/plugins/dap.lua @@ -0,0 +1,50 @@ +return { + "mfussenegger/nvim-dap", + opts = { + defaults = { + fallback = { + external_terminal = { + command = "/usr/bin/kitty", + args = { "--class", "kitty-dap", "--hold", "--detach", "nvim-dap", "-c", "DAP" }, + }, + }, + }, + }, + keys = { + { + "", + function() + require("dap").continue() + end, + desc = "Debug: Continue", + }, + { + "", + function() + require("dap").step_over() + end, + desc = "Debug: Step over", + }, + { + "", + function() + require("dap").step_into() + end, + desc = "Debug: Step into", + }, + { + "", + function() + require("dap").step_out() + end, + desc = "Debug: Step out", + }, + { + "", + function() + require("dap").toggle_breakpoint() + end, + desc = "Debug: Toggle breakpoint", + }, + }, +}