nvim-lspconfig icon indicating copy to clipboard operation
nvim-lspconfig copied to clipboard

rust_analyzer won't attach to rust buffers

Open zoefiri opened this issue 1 year ago • 1 comments

Description

rust_analyzer won't attach to Rust buffers. For some reason it doesn't appear in the "Configured server list" in :LspInfo, but it does appear in :LspInstallInfo (see actual behaviour)

Neovim version

NVIM v0.7.2 Build type: Release LuaJIT 2.1.0-beta3 Compiled by void-buildslave@a-fsn-de

Nvim-lspconfig version

1b7ef62

Operating system and version

VoidLinux (linux-5.18_1)

Affected language servers

rust_analyzer

Steps to reproduce

config at https://github.com/zoefiri/dots/blob/master/confs/nvim/:

nvim main.rs :LspInstall rust_analyzer :LspStart

Actual behavior

image image

Expected behavior

rust_analyzer attaching to the rust buffer

Minimal config

https://github.com/zoefiri/dots/blob/master/confs/nvim/init.lua

LSP log

https://gist.github.com/672dfa489b77392fc915427c55c407b2

zoefiri avatar Jul 26 '22 00:07 zoefiri

What if you run

:lua require"lspconfig".setup("rust_analyzer")
```
Then check lspinfo

sigmaSd avatar Jul 26 '22 07:07 sigmaSd

@zoefiri did you still have this problem?

glepnir avatar Aug 23 '22 09:08 glepnir