30 lines
692 B
Lua
30 lines
692 B
Lua
return {
|
|
"mrcjkb/rustaceanvim",
|
|
version = "^5", -- Recommended
|
|
lazy = false, -- This plugin is already lazy
|
|
config = function()
|
|
vim.g.rustaceanvim = {
|
|
server = {
|
|
on_attach = function(_, _)
|
|
local map = vim.keymap.set
|
|
map({ "n", "v" }, "<leader>la", "<CMD>RustLsp codeAction<CR>", { desc = "Code action" })
|
|
end,
|
|
default_settings = {
|
|
["rust-analyzer"] = {
|
|
inlayHints = {
|
|
parameterHints = {
|
|
enable = false,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
tools = {
|
|
float_win_config = {
|
|
border = "rounded",
|
|
},
|
|
},
|
|
}
|
|
end,
|
|
}
|