mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 16:39:04 +02:00
add: config dap
This commit is contained in:
parent
19f44f754d
commit
e2fd81f115
3 changed files with 5 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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" },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue