Skip to content

Instantly share code, notes, and snippets.

@ciwolsey
Last active September 19, 2022 14:30
Show Gist options
  • Save ciwolsey/b9ebd279deb068f21ac1b4ef66989498 to your computer and use it in GitHub Desktop.
Save ciwolsey/b9ebd279deb068f21ac1b4ef66989498 to your computer and use it in GitHub Desktop.
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,
},
})
-- Instead of:
require('lspconfig')['rust_analyzer'].setup{
on_attach = on_attach,
flags = lsp_flags,
-- Server-specific settings...
settings = {
["rust-analyzer"] = {}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment