From 5104ec63c52beb3c7dafe54c1a0f45d38686e4c3 Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Tue, 26 Jul 2022 13:09:47 +0200 Subject: more small improvements --- lua/alpha/dap.lua | 9 ++++++--- lua/alpha/plugins.lua | 6 +++++- 2 files changed, 11 insertions(+), 4 deletions(-) (limited to 'lua') diff --git a/lua/alpha/dap.lua b/lua/alpha/dap.lua index 1ee598a..1a4fc6f 100644 --- a/lua/alpha/dap.lua +++ b/lua/alpha/dap.lua @@ -64,7 +64,7 @@ local hydra = require("hydra") local hint = [[ Nvim DAP _d_: Start/Continue _j_: StepOver _k_: StepOut _l_: StepInto ^ - _bp_: Toogle Breakpoint _cb_: Conditional Breakpoint ^ + _bp_: Toogle Breakpoint _bc_: Conditional Breakpoint ^ _c_: Run To Cursor _tt_: Go Debug Test _s_: Start _x_: Stop Debbuging ^^ __ @@ -84,7 +84,10 @@ hydra({ body = "d", heads = { { "d", dap.continue }, - { "s", dapui.open }, + { "s", function () + dap.continue() + dapui.open({}) + end }, { "bp", dap.toggle_breakpoint }, { "l", dap.step_into }, { "j", dap.step_over }, @@ -92,7 +95,7 @@ hydra({ { "c", dap.run_to_cursor }, { "tt", dap_go.debug_test }, { - "cb", + "bc", function() vim.ui.input({ prompt = "Condition: " }, function(condition) dap.toggle_breakpoint(condition) diff --git a/lua/alpha/plugins.lua b/lua/alpha/plugins.lua index cf44fd3..2488042 100644 --- a/lua/alpha/plugins.lua +++ b/lua/alpha/plugins.lua @@ -94,7 +94,11 @@ return require("packer").startup(function(use) "jose-elias-alvarez/null-ls.nvim", }) - use({ "williamboman/mason.nvim", "williamboman/mason-lspconfig.nvim" }) + -- Instalation of LSP/Debuggers/Other + use({ + "williamboman/mason.nvim", + "williamboman/mason-lspconfig.nvim", + }) use({ "nvim-telescope/telescope.nvim", -- cgit v1.2.3