From e2fd81f11596f8fa1c0673f61800aa3d55b2db3a Mon Sep 17 00:00:00 2001 From: "asep.komarudin" Date: Sun, 16 Jun 2024 21:45:19 +0700 Subject: [PATCH] add: config dap --- lua/custom/default.lua | 3 +++ lua/plugins/dap.lua | 2 +- lua/user/utils/whichkey.lua | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lua/custom/default.lua b/lua/custom/default.lua index 9c15095..5116b13 100644 --- a/lua/custom/default.lua +++ b/lua/custom/default.lua @@ -149,3 +149,6 @@ pcode.rest_client = true -- https://github.com/ThePrimeagen/refactoring.nvim pcode.refactoring = false + +-- https://github.com/mfussenegger/nvim-dap +pcode.nvim_dap = true diff --git a/lua/plugins/dap.lua b/lua/plugins/dap.lua index 53fc6ff..6e28d13 100644 --- a/lua/plugins/dap.lua +++ b/lua/plugins/dap.lua @@ -1,5 +1,5 @@ local M = {} -if vim.fn.has("win32") == 0 then +if vim.fn.has("win32") == 0 and pcode.nvim_dap then M = { { "rcarriga/nvim-dap-ui", diff --git a/lua/user/utils/whichkey.lua b/lua/user/utils/whichkey.lua index 20fe1e4..a39805b 100644 --- a/lua/user/utils/whichkey.lua +++ b/lua/user/utils/whichkey.lua @@ -3,7 +3,7 @@ local M = {} -- for debug local debug_key = {} -if vim.fn.has("win32") == 0 then +if vim.fn.has("win32") == 0 and pcode.nvim_dap then debug_key = { name = "  Debug", t = { "lua require'dap'.toggle_breakpoint()", "Toggle Breakpoint" },