Add nvim-dap-disasm to view disassembly during debug
This commit is contained in:
parent
f08562558b
commit
bea244a4aa
@ -5,6 +5,7 @@ return {
|
|||||||
'kbenzie/mason.nvim',
|
'kbenzie/mason.nvim',
|
||||||
'jay-babu/mason-nvim-dap.nvim',
|
'jay-babu/mason-nvim-dap.nvim',
|
||||||
'theHamsta/nvim-dap-virtual-text',
|
'theHamsta/nvim-dap-virtual-text',
|
||||||
|
'Jorenar/nvim-dap-disasm',
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
local dap = require('dap')
|
local dap = require('dap')
|
||||||
@ -32,13 +33,16 @@ return {
|
|||||||
winbar = {
|
winbar = {
|
||||||
sections = {
|
sections = {
|
||||||
"console", "watches", "scopes", "exceptions",
|
"console", "watches", "scopes", "exceptions",
|
||||||
"breakpoints", "threads", "repl",
|
"breakpoints", "threads", "disassembly", "repl",
|
||||||
},
|
},
|
||||||
-- Must be one of the sections declared above
|
-- Must be one of the sections declared above
|
||||||
default_section = "console",
|
default_section = "console",
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
require('nvim-dap-virtual-text').setup({})
|
require('nvim-dap-virtual-text').setup({})
|
||||||
|
require('dap-disasm').setup({
|
||||||
|
dapview_register = true,
|
||||||
|
})
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd({ "FileType" }, {
|
vim.api.nvim_create_autocmd({ "FileType" }, {
|
||||||
pattern = {
|
pattern = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user