nvimdotfiles/after/plugin/lsp/lsp-rust.lua
Marco 1d43cda9fe Add c lsp
Add lua lsp
Add .gitignore
Remove packer_compiled.lua
2023-09-25 10:32:25 +02:00

13 lines
388 B
Lua

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>ga", rt.code_action_group.code_action_group, { buffer = bufnr })
end,
},
})