1
0

fix: previewed args are now readable

feat: added keybindings for dap
This commit is contained in:
2026-02-17 20:18:06 +00:00
parent 5931a7db29
commit 52821232b1
4 changed files with 59 additions and 3 deletions

View File

@@ -11,7 +11,7 @@
"conform.nvim": { "branch": "master", "commit": "c64cc754ace603e185ab30113aaef174187eacf8" },
"crates.nvim": { "branch": "main", "commit": "ac9fa498a9edb96dc3056724ff69d5f40b898453" },
"friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" },
"gitsigns.nvim": { "branch": "main", "commit": "472f752943d44d732cece09d442d45681ce38f48" },
"gitsigns.nvim": { "branch": "main", "commit": "89f75073da1c8fab1d8b6285da72366ee54633ba" },
"indent-blankline.nvim": { "branch": "master", "commit": "005b56001b2cb30bfa61b7986bc50657816ba4ba" },
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
"mason.nvim": { "branch": "main", "commit": "a83eabdc8c49c0c93bf5bb162fa3b57404a9d095" },
@@ -25,7 +25,7 @@
"nvim-dap-go": { "branch": "main", "commit": "b4421153ead5d726603b02743ea40cf26a51ed5f" },
"nvim-dap-python": { "branch": "master", "commit": "bfe572e4458e0ac876b9539a1e9f301c72db8ea0" },
"nvim-dap-ui": { "branch": "master", "commit": "cf91d5e2d07c72903d052f5207511bf7ecdb7122" },
"nvim-lspconfig": { "branch": "master", "commit": "db8fef885009fdec0daeff3e5dda92e1f539611e" },
"nvim-lspconfig": { "branch": "master", "commit": "a844e89ea0e0e4b207ec550c3b51fb6e471881a4" },
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
"nvim-tree.lua": { "branch": "master", "commit": "87d096a39cb2d5d43e6771563575ff042a79f48b" },
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },

View File

@@ -7,6 +7,12 @@ local M = {}
M.base46 = {
theme = "everforest",
hl_override = {
LspSignatureActiveParameter = {
fg = "#ff9e64",
bold = true,
},
},
-- hl_override = {
-- Comment = { italic = true },

View File

@@ -1,6 +1,7 @@
require("nvchad.mappings")
local map = vim.keymap.set
local dap = require("dap")
map("n", "]g", function()
vim.diagnostic.jump({ count = 1, float = true })
@@ -25,13 +26,59 @@ map("n", "[t", function()
end, { desc = "Previous todo comment" })
map("n", "<leader>db", function()
require("dap").toggle_breakpoint()
dap.toggle_breakpoint()
end, { desc = "Add a breakpoint" })
map("n", "<F5>", function()
dap.continue()
end, { desc = "Debug: Continue / Start" })
map("n", "<F10>", function()
dap.step_over()
end, { desc = "Debug: Step Over" })
map("n", "<F11>", function()
dap.step_into()
end, { desc = "Debug: Step Into" })
map("n", "<F12>", function()
dap.step_out()
end, { desc = "Debug: Step Out" })
-- --- Time Travel Debugging (Reverse/rr) ---
map("n", "<S-F5>", function()
dap.reverse_continue()
end, { desc = "Debug: Reverse Continue (Rewind)" })
map("n", "<S-F10>", function()
dap.step_back()
end, { desc = "Debug: Step Back (Undo Step)" })
-- --- Breakpoints & UI ---
map("n", "<leader>db", function()
dap.toggle_breakpoint()
end, { desc = "Debug: Toggle Breakpoint" })
map("n", "<leader>dc", function()
dap.set_breakpoint(vim.fn.input("Breakpoint condition: "))
end, { desc = "Debug: Set Conditional Breakpoint" })
map("n", "<leader>dl", function()
dap.set_breakpoint(nil, nil, vim.fn.input("Log point message: "))
end, { desc = "Debug: Set Log Point" })
map("n", "<F6>", function()
dap.terminate()
end, { desc = "Debug: Terminate Session" })
map("n", "<leader>dui", function()
require("dapui").toggle()
end, { desc = "Toggle debugger ui" })
map("n", "<leader>drui", function()
require("dapui").open({ reset = true })
end, { desc = "Debug: Reset UI Layout" })
map("n", "<leader>gb", function()
vim.cmd("Gitsigns blame_line")
end, { desc = "Show lines git blame" })

View File

@@ -119,6 +119,9 @@ return {
require("dapui").setup()
vim.fn.sign_define("DapBreakpoint", { text = "🐞" })
vim.fn.sign_define("DapBreakpointRejected", { text = "🐞" })
vim.fn.sign_define("DapStopped", { text = "👉" })
vim.api.nvim_set_hl(0, "DapBreakpointCondition", { fg = "#e5c07b", ctermfg = 180 })
vim.fn.sign_define("DapBreakpointCondition", { text = "🐝", texthl = "DapBreakpointCondition" })
local dap, dapui = require("dap"), require("dapui")
dap.listeners.before.attach.dapui_config = function()
dapui.open()