diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2023-12-26 19:37:33 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2023-12-26 19:37:33 -0600 |
commit | 2b3fbe7925a24ac4569ea4bd2d5c4069feb6f81f (patch) | |
tree | 7ef72413d619a950fa06bd0ec17811702f93d1b3 /lua/kickstart/plugins/debug.lua | |
parent | 24f547435d321a9c93a235f653b79f1854049767 (diff) |
feat: add debug capabilities, remove rest of kickstart
Diffstat (limited to 'lua/kickstart/plugins/debug.lua')
-rw-r--r-- | lua/kickstart/plugins/debug.lua | 54 |
1 files changed, 0 insertions, 54 deletions
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', '<F5>', dap.continue) - vim.keymap.set('n', '<F1>', dap.step_into) - vim.keymap.set('n', '<F2>', dap.step_over) - vim.keymap.set('n', '<F3>', dap.step_out) - vim.keymap.set('n', '<leader>b', dap.toggle_breakpoint) - vim.keymap.set('n', '<leader>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", "<F7>", 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, -} |