feat: adding keymaps and health

This commit is contained in:
Thomas Alcala Schneider 2023-03-22 17:54:34 +01:00
parent 1fd5843cf1
commit a266489958
No known key found for this signature in database
GPG key ID: 24BE5CF48622091B
7 changed files with 344 additions and 0 deletions

View file

@ -0,0 +1,20 @@
return {'simrat39/rust-tools.nvim',
dependencies = {"rust-lang/rust.vim"},
config = function()
vim.g.rustfmt_autosave = 1
vim.g.rust_clip_command = "pbcopy"
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
}