revamped setup

This commit is contained in:
gpskwlkr 2024-03-29 12:01:14 +04:00
parent 8f13d0a017
commit e7d7db79e6
32 changed files with 358 additions and 830 deletions

View file

@ -0,0 +1,18 @@
return {
{
"simrat39/rust-tools.nvim",
config = function()
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
},
})
end,
}
}