changes
This commit is contained in:
@@ -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" })
|
||||
|
||||
@@ -10,7 +10,6 @@ vim.api.nvim_create_autocmd({ "VimEnter", "ColorScheme" }, {
|
||||
vim.api.nvim_set_hl(0, "CursorInsert", { fg = "#000000", bg = "#FFFF00" })
|
||||
end,
|
||||
})
|
||||
|
||||
-- 2. LÉPÉS: A configod, kiegészítve a "-CursorInsert" hivatkozással
|
||||
-- Figyeld meg: "block-CursorInsert-blink..."
|
||||
vim.opt.guicursor = "n-v-c:block,i-ci-ve:block-CursorInsert-blinkwait700-blinkon400-blinkoff250,r-cr:hor20,o:hor50"
|
||||
|
||||
Reference in New Issue
Block a user