add: config dap

This commit is contained in:
asep.komarudin 2024-06-16 21:45:19 +07:00
parent 19f44f754d
commit e2fd81f115
3 changed files with 5 additions and 2 deletions

View file

@ -149,3 +149,6 @@ pcode.rest_client = true
-- https://github.com/ThePrimeagen/refactoring.nvim -- https://github.com/ThePrimeagen/refactoring.nvim
pcode.refactoring = false pcode.refactoring = false
-- https://github.com/mfussenegger/nvim-dap
pcode.nvim_dap = true

View file

@ -1,5 +1,5 @@
local M = {} local M = {}
if vim.fn.has("win32") == 0 then if vim.fn.has("win32") == 0 and pcode.nvim_dap then
M = { M = {
{ {
"rcarriga/nvim-dap-ui", "rcarriga/nvim-dap-ui",

View file

@ -3,7 +3,7 @@ local M = {}
-- for debug -- for debug
local debug_key = {} local debug_key = {}
if vim.fn.has("win32") == 0 then if vim.fn.has("win32") == 0 and pcode.nvim_dap then
debug_key = { debug_key = {
name = "  Debug", name = "  Debug",
t = { "<cmd>lua require'dap'.toggle_breakpoint()<cr>", "Toggle Breakpoint" }, t = { "<cmd>lua require'dap'.toggle_breakpoint()<cr>", "Toggle Breakpoint" },