Add better rust code action

This commit is contained in:
Alessandro
2024-09-08 16:48:34 +02:00
parent 9eeb20cca1
commit 2014a0d2a7

View File

@@ -5,6 +5,10 @@ return {
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 = {