added F11 close debug
parent
1f8fe4fa49
commit
cf8bac705a
|
@ -27,9 +27,6 @@ return {
|
|||
local dapui = require 'dapui'
|
||||
|
||||
require("nvim-dap-virtual-text").setup {
|
||||
enabled = true,
|
||||
virt_text_pos = vim.fn.has 'nvim-0.10' == 1 and 'inline' or 'eol',
|
||||
|
||||
}
|
||||
|
||||
require('mason-nvim-dap').setup {
|
||||
|
@ -60,6 +57,7 @@ return {
|
|||
vim.keymap.set('n', '<leader>B', function()
|
||||
dap.set_breakpoint(vim.fn.input 'Breakpoint condition: ')
|
||||
end, { desc = 'Debug: Set Breakpoint' })
|
||||
vim.keymap.set("n", "<F11>", function() require("dapui").close() end, { desc = "Close all DAP UI frames" })
|
||||
|
||||
-- Dap UI setup
|
||||
-- For more information, see |:help nvim-dap-ui|
|
||||
|
|
Loading…
Reference in New Issue