This commit is contained in:
2026-01-03 09:57:52 +01:00
parent 2a45cfcb57
commit 419cb3124f
9 changed files with 70 additions and 13 deletions
+19
View File
@@ -1,3 +1,22 @@
--vim.keymap.set("n", "<leader>dd", [["_ggdG]], { desc = "Delete buffer content" })
-- 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
-- Ha Rust fájlban vagyunk, a Rust saját debug indítóját használjuk
vim.keymap.set("n", "<leader>dc", function()
if vim.bo.filetype == "rust" then
vim.cmd.RustLsp("debuggables")
else
require("dap").continue()
end
end, { desc = "Debug indítása" })
-- A biztonság kedvéért a breakpoint gombot is javítjuk
vim.keymap.set("n", "<leader>db", function()
if vim.bo.filetype == "rust" then
vim.cmd.RustLsp("!toggleBreakpoint")
else
require("dap").toggle_breakpoint()
end
end, { desc = "Breakpoint" })