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" },