Cleanup debugger plugin config
This commit is contained in:
parent
6fefe27f0e
commit
e0286197f8
@ -9,20 +9,17 @@ return {
|
||||
config = function()
|
||||
local dap = require('dap')
|
||||
|
||||
-- Installation
|
||||
local debug_adapters = {
|
||||
'codelldb', -- C/C++/Rust/Zig
|
||||
}
|
||||
|
||||
if vim.fn.executable('pip') == 1 then
|
||||
for _, package in ipairs({
|
||||
'python', -- Python
|
||||
}) do table.insert(debug_adapters, package) end
|
||||
table.insert(debug_adapters, 'python') -- Python
|
||||
end
|
||||
|
||||
if vim.fn.executable('go') == 1 then
|
||||
for _, package in ipairs({
|
||||
'delve', -- Go
|
||||
}) do table.insert(debug_adapters, package) end
|
||||
table.insert(debug_adapters, 'delve') -- Go
|
||||
end
|
||||
|
||||
require("mason-nvim-dap").setup({
|
||||
@ -45,6 +42,7 @@ return {
|
||||
|
||||
local widgets = require('dap.ui.widgets')
|
||||
|
||||
-- Mappings
|
||||
vim.keymap.set('n', '<F5>', dap.continue)
|
||||
vim.keymap.set('n', '<F17>', dap.terminate) -- Shift-F5
|
||||
vim.keymap.set('n', '<F9>', dap.toggle_breakpoint)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user