We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rust-analyzer
I want to be able to activate Features and change the target, for which I need to restart the language server.
I'm currently doing this:
function RustTarget(target) for _, client in ipairs(vim.lsp.get_active_clients()) do if client.name == "rust_analyzer" then local settings = client.config.settings client.stop() settings["rust-analyzer"] = vim.tbl_deep_extend("force", settings["rust-analyzer"], { cargo = { target = target } }) local config = require("lspconfig.configs")["rust_analyzer"] config.setup({ settings = settings }) config.launch() end end end
Ideally, I'd like a way to do client.restart({settings = updated_settings}).
client.restart({settings = updated_settings})
It would also be nice, if I could get a better way to access a client i.e.
client
something_get_client("rust-analyzer") -- instead of for _, client in ipairs(vim.lsp.get_active_clients()) do if client.name == "rust_analyzer" then
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Language server
rust-analyzer
Requested feature
I want to be able to activate Features and change the target, for which I need to restart the language server.
I'm currently doing this:
Ideally, I'd like a way to do
client.restart({settings = updated_settings})
.It would also be nice, if I could get a better way to access a
client
i.e.Other clients which have this feature
No response
The text was updated successfully, but these errors were encountered: