Setup debug adapters for codelldb, debugpy and gopls. Also remove
nvim-dap-profiles :( Apparently there is a way to do the same thing using launch.json built into dap, much better than my solution.
This commit is contained in:
parent
b7796e9a5e
commit
472208ea95
8 changed files with 95 additions and 7 deletions
|
|
@ -26,6 +26,10 @@ return {
|
|||
-- CMake
|
||||
"cmake-language-server",
|
||||
"cmakelang",
|
||||
|
||||
-- Python
|
||||
"debugpy",
|
||||
"pyright",
|
||||
},
|
||||
})
|
||||
end
|
||||
|
|
|
|||
|
|
@ -5,24 +5,30 @@ return {
|
|||
"mfussenegger/nvim-dap",
|
||||
dependencies = {
|
||||
"rcarriga/nvim-dap-ui",
|
||||
|
||||
-- Special adapters
|
||||
"leoluz/nvim-dap-go",
|
||||
"mfussenegger/nvim-dap-python",
|
||||
|
||||
{ "nvim-neotest/nvim-nio", lazy = true },
|
||||
"LiadOz/nvim-dap-repl-highlights",
|
||||
"theHamsta/nvim-dap-virtual-text",
|
||||
"Weissle/persistent-breakpoints.nvim",
|
||||
{
|
||||
"LarssonMartin1998/nvim-dap-profiles",
|
||||
opts = {},
|
||||
},
|
||||
"leoluz/nvim-dap-go",
|
||||
},
|
||||
config = function()
|
||||
local dap = require("dap")
|
||||
local dapui = require("dapui")
|
||||
|
||||
dapui.setup()
|
||||
-- Special adapters
|
||||
require("dap-go").setup()
|
||||
require("dap-python").setup("python3")
|
||||
-- Special adapters
|
||||
|
||||
require("dap.ext.vscode").load_launchjs()
|
||||
require("persistent-breakpoints").setup {
|
||||
load_breakpoints_event = { "BufReadPost" }
|
||||
}
|
||||
require("dap-go").setup()
|
||||
|
||||
local stepping_keymaps = {
|
||||
n = {
|
||||
|
|
@ -46,6 +46,7 @@ return {
|
|||
"regex",
|
||||
"dap_repl",
|
||||
"muttrc",
|
||||
"python",
|
||||
},
|
||||
sync_install = false,
|
||||
-- This can be updated to a list of languages instead of defaulting to true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue