From 3094bf2a3983b375f4adeccd25c3b12bbbded2aa Mon Sep 17 00:00:00 2001 From: Squibid Date: Thu, 17 Apr 2025 11:41:32 -0500 Subject: a lot more stuff --- lua/conf/plugins/dap.lua | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'lua/conf/plugins/dap.lua') diff --git a/lua/conf/plugins/dap.lua b/lua/conf/plugins/dap.lua index fdcd152..5fafd92 100644 --- a/lua/conf/plugins/dap.lua +++ b/lua/conf/plugins/dap.lua @@ -4,9 +4,9 @@ local map = misc.map return { 'mfussenegger/nvim-dap', requires = { 'williamboman/mason.nvim', - 'nvim-telescope/telescope.nvim' + 'nvim-telescope/telescope.nvim', }, - disable = vim.version().minor < 8, + disable = not vim.fn.has("nvim-0.8.0"), branch = '0.8.0', function() @@ -38,10 +38,13 @@ return { 'mfussenegger/nvim-dap', } } - map('n', 'ec', dap.continue) - map('n', 'eb', require("dap.breakpoints").toggle) - map('n', 'e]', dap.step_over) - map('n', 'e[', dap.step_back) - map('n', 'eR', dap.restart) + map('n', 'ec', dap.continue, { desc = "dap continue " }) + map('n', 'el', dap.run_last, { desc = "dap run last" }) + map('n', 'et', dap.terminate, { desc = "dap terminate " }) + map('n', 'eb', require("dap.breakpoints").toggle, { desc = "dap toggle breakpoint" }) + map('n', 'e]', dap.step_over, { desc = "dap step over" }) + map('n', 'e[', dap.step_back, { desc = "dap step back" }) + map('n', 'er', dap.repl.toggle, { desc = "dap repl toggle" }) + map('n', 'eR', dap.restart, { desc = "dap restart" }) end } -- cgit v1.2.1