🔧 Added rust tooling to nvim

This commit is contained in:
z3rOR0ne 2024-03-30 23:36:14 -07:00
parent 676a132c1f
commit 2a35f267b6
3 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,12 @@
local rt = require("rust-tools")
rt.setup({
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>a", rt.code_action_group.code_action_group, { buffer = bufnr })
end,
},
})