-- Keymaps are automatically loaded on the VeryLazy event -- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua -- Add any additional keymaps here -- This file is automatically loaded by lazyvim.config.init local map = vim.keymap.set -- DAP (Debug Adapter Protocol) -- Note: LazyVim uses d for Debugging by default, -- but these will override/augment the defaults. map("n", "dl", function() require("dap").step_into() end, { desc = "Debugger step into" }) map("n", "dj", function() require("dap").step_over() end, { desc = "Debugger step over" }) map("n", "dk", function() require("dap").step_out() end, { desc = "Debugger step out" }) map("n", "dc", function() require("dap").continue() end, { desc = "Debugger continue" }) map("n", "db", function() require("dap").toggle_breakpoint() end, { desc = "Debugger toggle breakpoint" }) map("n", "dd", function() require("dap").set_breakpoint(vim.fn.input("Breakpoint condition: ")) end, { desc = "Debugger set conditional breakpoint" }) map("n", "de", function() require("dap").terminate() end, { desc = "Debugger reset" }) map("n", "dr", function() require("dap").run_last() end, { desc = "Debugger run last" }) -- Rustaceanvim map("n", "dt", "RustLsp testables", { desc = "Debugger testables" }) -- Copilot toggle (inline suggestions + blink/cmp source) map("n", "ua", function() vim.g.copilot_enabled = not vim.g.copilot_enabled require("copilot.suggestion").toggle_auto_trigger() local state = vim.g.copilot_enabled and "enabled" or "disabled" vim.notify("Copilot " .. state, vim.log.levels.INFO) end, { desc = "Toggle Copilot" })