2023-09-14 18:15:11 +00:00
|
|
|
local rt = require("rust-tools")
|
|
|
|
|
|
|
|
rt.setup({
|
2023-11-27 02:27:12 +00:00
|
|
|
server = {
|
|
|
|
on_attach = function(_, bufnr)
|
|
|
|
-- Hover actions
|
|
|
|
vim.keymap.set("n", "<C-space>", rt.hover_actions.hover_actions, { buffer = bufnr })
|
|
|
|
-- Code action groups
|
|
|
|
vim.keymap.set("n", "<Leader>ga", rt.code_action_group.code_action_group, { buffer = bufnr })
|
|
|
|
end,
|
|
|
|
},
|
2023-09-14 18:15:11 +00:00
|
|
|
})
|