This commit is contained in:
Ali Can Zeybek
2023-08-09 16:27:14 +03:00
parent 8a6816da0e
commit 6d8f231fd3
9 changed files with 614 additions and 3 deletions

12
lua/user/rust-rools.lua Normal file
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,
},
})