From b6f9df506112ebac85634ef5a7384eb7921783e0 Mon Sep 17 00:00:00 2001 From: Ralph Azucena Date: Thu, 11 Apr 2024 00:36:42 -0700 Subject: [PATCH] nvim-dap toggle --- lua/config/lazy.lua | 4 ++-- lua/plugins/extras_ruby_mine.lua | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua index 2c9de9d..d7b82e9 100644 --- a/lua/config/lazy.lua +++ b/lua/config/lazy.lua @@ -14,12 +14,12 @@ require("lazy").setup({ -- { import = "lazyvim.plugins.extras.lang.typescript" }, -- { import = "lazyvim.plugins.extras.lang.json" }, -- { import = "lazyvim.plugins.extras.ui.mini-animate" }, - -- import/override with your plugins - { import = "plugins" }, -- include copilot { import = "lazyvim.plugins.extras.coding.copilot" }, { import = "lazyvim.plugins.extras.test.core" }, + -- import/override with your plugins - should be last since these are my customizations + { import = "plugins" }, }, defaults = { -- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup. diff --git a/lua/plugins/extras_ruby_mine.lua b/lua/plugins/extras_ruby_mine.lua index 7062b23..8b55f35 100644 --- a/lua/plugins/extras_ruby_mine.lua +++ b/lua/plugins/extras_ruby_mine.lua @@ -35,7 +35,8 @@ return { end, }, keys = { - { "te", function() require("dap").repl.open() end, desc = "Debug T(e)rminal" }, + -- https://github.com/mfussenegger/nvim-dap/blob/master/doc/dap.txt + { "te", function() require("dap").repl.toggle() end, desc = "Debug Toggle" }, { "tn", function() require("dap").continue() end, desc = "Debug Next/Continue" }, }, },