Files
dotfiles/dot_config/nvim/lua/plugins/dap/rust.lua
s0wlz (Matthias Puchstein) ca2b441bb7 nvim,tmux,kitty: full config overhaul (AstroNvim → native 0.12)
Replaces AstroNvim v5 with from-scratch Neovim 0.12 config using
vim.lsp.config()/vim.lsp.enable() natively, lazy.nvim, blink.cmp,
and smart-splits tmux integration.

tmux: new C-Space prefix, hjkl pane nav, resize key table, tpm plugins.
kitty: add allow_remote_control for smart-splits.
2026-04-09 23:30:34 +02:00

44 lines
1.0 KiB
Lua

local M = {}
local function setup()
local dap = require("dap")
local mason_path = vim.fn.stdpath("data") .. "/mason/packages/codelldb"
dap.adapters.codelldb = {
type = "server",
port = "${port}",
executable = {
command = mason_path .. "/extension/adapter/codelldb",
args = { "--port", "${port}" },
},
}
dap.configurations.rust = {
{
name = "Launch (Rust)",
type = "codelldb",
request = "launch",
program = function()
return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/target/debug/", "file")
end,
cwd = "${workspaceFolder}",
stopOnEntry = false,
args = {},
},
{
name = "Launch Tauri (Rust)",
type = "codelldb",
request = "launch",
program = function()
return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/src-tauri/target/debug/", "file")
end,
cwd = "${workspaceFolder}/src-tauri",
stopOnEntry = false,
args = {},
},
}
end
setup()
return M