From 2b3fbe7925a24ac4569ea4bd2d5c4069feb6f81f Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Tue, 26 Dec 2023 19:37:33 -0600 Subject: feat: add debug capabilities, remove rest of kickstart --- lua/kickstart/plugins/debug.lua | 54 ----------------------------------------- 1 file changed, 54 deletions(-) delete mode 100644 lua/kickstart/plugins/debug.lua (limited to 'lua/kickstart/plugins/debug.lua') diff --git a/lua/kickstart/plugins/debug.lua b/lua/kickstart/plugins/debug.lua deleted file mode 100644 index 0150db8..0000000 --- a/lua/kickstart/plugins/debug.lua +++ /dev/null @@ -1,54 +0,0 @@ -return { - 'mfussenegger/nvim-dap', - dependencies = { - 'rcarriga/nvim-dap-ui', - 'williamboman/mason.nvim', - 'jay-babu/mason-nvim-dap.nvim', - -- Add your own debuggers here - 'leoluz/nvim-dap-go', - }, - config = function() - local dap = require 'dap' - local dapui = require 'dapui' - - require('mason-nvim-dap').setup { - automatic_setup = true, - handlers = {}, - ensure_installed = { - 'delve', - }, - } - vim.keymap.set('n', '', dap.continue) - vim.keymap.set('n', '', dap.step_into) - vim.keymap.set('n', '', dap.step_over) - vim.keymap.set('n', '', dap.step_out) - vim.keymap.set('n', 'b', dap.toggle_breakpoint) - vim.keymap.set('n', 'B', function() - dap.set_breakpoint(vim.fn.input 'Breakpoint condition: ') - end) - - dapui.setup { - icons = { expanded = '▾', collapsed = '▸', current_frame = '*' }, - controls = { - icons = { - pause = '⏸', - play = '▶', - step_into = '⏎', - step_over = '⏭', - step_out = '⏮', - step_back = 'b', - run_last = '▶▶', - terminate = '⏹', - disconnect = "⏏", - }, - }, - } - vim.keymap.set("n", "", dapui.toggle) - - dap.listeners.after.event_initialized['dapui_config'] = dapui.open - dap.listeners.before.event_terminated['dapui_config'] = dapui.close - dap.listeners.before.event_exited['dapui_config'] = dapui.close - - require('dap-go').setup() - end, -} -- cgit v1.2.3-70-g09d2