rust-tools.nvim
rust-tools.nvim copied to clipboard
Args
How to send args to RustDebuggables like i do in terminal ./program A B C or in cargo run -- A B C i tried like this but not working
{
"simrat39/rust-tools.nvim",
after = { "nvim-lspconfig", "mason-lspconfig.nvim" },
-- Is configured via the server_registration_override installed below!
config = function()
local extension_path = "/home/zed/.vscode/extensions/vadimcn.vscode-lldb-1.7.4/"
local codelldb_path = extension_path .. "adapter/codelldb"
local liblldb_path = extension_path .. "lldb/lib/liblldb.so"
require("rust-tools").setup {
-- get the server-settings from the AstroNvim tables to allow use with lsp.server-settings and lsp.on_attach user configuration
server = astronvim.lsp.server_settings "rust_analyzer",
dap = {
args = { "A", "B" },
adapter = require("rust-tools.dap").get_codelldb_adapter(codelldb_path, liblldb_path),
},
}
end,
},
btw i am using astronvim