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" })
-1
View File
@@ -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"
+10
View File
@@ -1,5 +1,15 @@
return {
{
"folke/tokyonight.nvim",
opts = {
transparent = true, -- Ez átengedi a Kitty háttérszínét/képét
styles = {
sidebars = "transparent",
floats = "transparent",
},
},
-- { "dylanaraps/wal.vim", lazy = false },
-- "Mofiqul/vscode.nvim",
-- lazy = false,
-- priority = 1000,
+25 -6
View File
@@ -1,20 +1,39 @@
return {
{
"mrcjkb/rustaceanvim",
version = "^6",
version = "^5",
ft = { "rust" },
opts = {
server = {
settings = {
["rust-analyzer"] = {
check = {
command = "check", -- Valós idejű type check Normal módban
extraArgs = { "--target-dir", "target/nvim-check" },
},
diagnostics = { disabled = false }, -- Hibák azonnal
check = { command = "check" },
},
},
},
},
config = function(_, opts)
-- Megkeressük a Mason-ös codelldb útvonalát
local mason_path = vim.fn.stdpath("data") .. "/mason/packages/codelldb/extension/"
local codelldb_path = mason_path .. "adapter/codelldb"
local liblldb_path = mason_path .. "lsp/lib/liblldb.so"
-- Definiáljuk az adaptert a DAP számára
local dap = require("dap")
-- EZ A LÉNYEG: Regisztráljuk az "lldb" nevet is!
dap.adapters.lldb = {
type = "executable",
command = codelldb_path,
name = "lldb",
}
-- Beállítjuk a rustaceanvim-et is
opts.dap = {
adapter = require("rustaceanvim.config").get_codelldb_adapter(codelldb_path, liblldb_path),
}
vim.g.rustaceanvim = vim.tbl_deep_extend("force", vim.g.rustaceanvim or {}, opts)
end,
},
}