nvimdotfiles/after/plugin/lsp/lsp-rust.lua
Marco 6737dcf50a Initial commit
neovim config with support for flutter, rust and go lsp.
some remaps.
some settings.
2023-09-14 20:15:11 +02:00

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