Last active
September 19, 2022 14:30
-
-
Save ciwolsey/b9ebd279deb068f21ac1b4ef66989498 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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