I'm trying to understand what feels like a bug in a LSP plugin in neovim because the same behavior isn't present in coc.nvim. How do I inspect rust-analyzer logs between coc.nvim and nvim-lspconfig?
Various kinds of features like going to the definition of a function, getting auto-completion results, or displaying documentation from an external crate or from the standard library do not work when I use nvim-lspconfig. All of these work with coc.nvim plus the rust-analyzer coc.nvim plugin, coc-rust-analyzer.
Good question! I think this would works best if the client (neovim) is tasked with capturing and displaying the LSP dialog. In VS Code, this is achieved by setting a "rust-analyzer.trace.server": "verbose" config value and opening a specific pane:
This question indicates that this is either not implemented or not discoverable in neovim (not that it is discoverable in code ...). I owe a cookie to the person who fixes it
I personally consider this a rather high-priority thing, as debugging why a specific thing doesn't work is very annoying otherwise. I've opened https://github.com/rust-analyzer/rust-analyzer/issues/8233 to try to improve the state of the art here.