This repository was archived by the owner on Jan 3, 2024. It is now read-only.
Replies: 1 comment 1 reply
-
-----------------------
-- Rust
-----------------------
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities = require("cmp_nvim_lsp").default_capabilities(capabilities)
local rt = require("rust-tools")
local extension_path = vim.env.HOME
.. "/.vscode/extensions/vadimcn.vscode-lldb-1.8.1/"
local codelldb_path = extension_path .. "adapter/codelldb"
local liblldb_path = extension_path .. "lldb/lib/liblldb.so"
rt.setup({
tools = {
hover_actions = {
auto_focus = true,
},
inlay_hints = {
auto = true,
only_current_line = true,
-- whether to show parameter hints with the inlay hints or not
-- default: true
show_parameter_hints = false,
},
on_initialized = function()
-- ih.set_all()
end,
},
server = {
on_attach = function(client, bufnr)
-- ih.on_attach(client, bufnr)
vim.keymap.set(
"n",
"<C-space>",
rt.hover_actions.hover_actions,
{ buffer = bufnr }
)
vim.keymap.set(
"n",
"<Leader>a",
rt.code_action_group.code_action_group,
{ buffer = bufnr }
)
end,
settings = {
["rust-analyzer"] = {
checkOnSave = {
command = "clippy"
}
}
}
},
dap = {
adapter = require("rust-tools.dap").get_codelldb_adapter(
codelldb_path,
liblldb_path
),
},
})
local dap = require("dap")
dap.defaults.fallback.terminal_win_cmd = "50vsplit new"
Here's my setup if it helps |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello guys! This is my current config:
may I ask what else I have to do, to use
:RustDebuggables
because currently I'm getting the following warning:Beta Was this translation helpful? Give feedback.
All reactions