diff options
| author | Raphael <glepnir@neovim.pro> | 2023-06-07 21:40:54 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-07 21:40:54 +0800 |
| commit | 87cb8d6d7f16f337354753895369fc06371eb80f (patch) | |
| tree | e172fc6577836b2dae9ec746efa62a72ed201e34 /lua/lspconfig/server_configurations/rust_analyzer.lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-87cb8d6d7f16f337354753895369fc06371eb80f.tar nvim-lspconfig-87cb8d6d7f16f337354753895369fc06371eb80f.tar.gz nvim-lspconfig-87cb8d6d7f16f337354753895369fc06371eb80f.tar.bz2 nvim-lspconfig-87cb8d6d7f16f337354753895369fc06371eb80f.tar.lz nvim-lspconfig-87cb8d6d7f16f337354753895369fc06371eb80f.tar.xz nvim-lspconfig-87cb8d6d7f16f337354753895369fc06371eb80f.tar.zst nvim-lspconfig-87cb8d6d7f16f337354753895369fc06371eb80f.zip | |
feat(rust_analyzer): register serverStatus capability (#2658)
Diffstat (limited to 'lua/lspconfig/server_configurations/rust_analyzer.lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/rust_analyzer.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/rust_analyzer.lua b/lua/lspconfig/server_configurations/rust_analyzer.lua index ea84a07a..bc7df9cb 100644 --- a/lua/lspconfig/server_configurations/rust_analyzer.lua +++ b/lua/lspconfig/server_configurations/rust_analyzer.lua @@ -60,6 +60,14 @@ local function is_library(fname) end end +local function register_cap() + local capabilities = vim.lsp.protocol.make_client_capabilities() + capabilities.experimental = { + serverStatusNotification = true, + } + return capabilities +end + return { default_config = { cmd = { 'rust-analyzer' }, @@ -88,6 +96,7 @@ return { or util.root_pattern 'rust-project.json'(fname) or util.find_git_ancestor(fname) end, + capabilities = register_cap(), }, commands = { CargoReload = { |
