aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/rust_analyzer.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2025-08-11 16:49:46 -0400
committerGitHub <noreply@github.com>2025-08-11 16:49:46 -0400
commit0e3083e961a5c73854cbab381c1cbb6652cee6a6 (patch)
tree6dd7b428c378de9e3d171da973ab5ecee0360c24 /lsp/rust_analyzer.lua
parentdocs: update configs.md (diff)
parentfix(tinymist): update config to 0.11+ (diff)
downloadnvim-lspconfig-0e3083e961a5c73854cbab381c1cbb6652cee6a6.tar
nvim-lspconfig-0e3083e961a5c73854cbab381c1cbb6652cee6a6.tar.gz
nvim-lspconfig-0e3083e961a5c73854cbab381c1cbb6652cee6a6.tar.bz2
nvim-lspconfig-0e3083e961a5c73854cbab381c1cbb6652cee6a6.tar.lz
nvim-lspconfig-0e3083e961a5c73854cbab381c1cbb6652cee6a6.tar.xz
nvim-lspconfig-0e3083e961a5c73854cbab381c1cbb6652cee6a6.tar.zst
nvim-lspconfig-0e3083e961a5c73854cbab381c1cbb6652cee6a6.zip
Merge #3993 fix: update configs to 0.11+
* fix(zk): update config to 0.11+ - Remove buf.execute_command in favor of :exec_cmd - Set title on :exec_cmd * fix(clangd): update config to 0.11+ - Use client and bufnr as arguments of on_attach - Silence wrong diagnostics about unknown method - Call request as method - Align the style of the two functions - Drop border setup in favor of winborder option * fix(denols): update config to 0.11+ - Call request_sync as method - Use vim.notify instead of nvim_err_writeln * fix(elmls): update config to 0.11+ - Use vim.bo[bufnr] instead of nvim_buf_get_option * fix(markdown_oxide): update config to 0.11+ - Use drop buf.execute command and use :exec_cmd * fix(rust_analyzer): update config to 0.11+ - Call request as method - Silence wrong diagnostic * fix(svlangserver): update config to 0.11+ - Drop .buf.execute_command and use :exec_cmd * fix(texlab): update config to 0.11+ - Use bufnr and client as arguments of on_attach - Update documentation to indicate implemented commands * fix(tinymist): update config to 0.11+ - Drop check for neovim version - Make sure the name starts with Lsp to remove the exemption from the CI check
Diffstat (limited to 'lsp/rust_analyzer.lua')
-rw-r--r--lsp/rust_analyzer.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lsp/rust_analyzer.lua b/lsp/rust_analyzer.lua
index 660442cc..c84a06e2 100644
--- a/lsp/rust_analyzer.lua
+++ b/lsp/rust_analyzer.lua
@@ -25,7 +25,8 @@ local function reload_workspace(bufnr)
local clients = vim.lsp.get_clients { bufnr = bufnr, name = 'rust_analyzer' }
for _, client in ipairs(clients) do
vim.notify 'Reloading Cargo Workspace'
- client.request('rust-analyzer/reloadWorkspace', nil, function(err)
+ ---@diagnostic disable-next-line:param-type-mismatch
+ client:request('rust-analyzer/reloadWorkspace', nil, function(err)
if err then
error(tostring(err))
end