Add better rust code action
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user