Replies: 1 comment 1 reply
-
I think something like this would work: vim.lsp.config('rust_analyzer', {
settings = {
['rust-analyzer'] = {
cargo = { targetDir = true },
check = { command = 'clippy' },
inlayHints = {
bindingModeHints = { enabled = true },
closureCaptureHints = { enabled = true },
closureReturnTypeHints = { enable = 'always' },
maxLength = 100,
},
rustc = { source = 'discover' },
}
},
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Since neovim 0.11, there is a way to configure LSP without using nvim-lspconfig plugin, with the help of vim.lsp.config API (according to this post).
An example for clangd is like this:
Is there some documentation or example of how this can be done for Rust with rust-analyzer?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions