Get the rustaceanvim diagnostics to a file browser in neovim (nvim-tree, mini.files) #797
-
Checked other resources
DescriptionHey! I'm looking for some guidance on how to display files in file tree plugins in a different state based on this plugin. I get that it might be more in the rust-analyzer area, but rust-analyzer doesn't have any lua setup per se, and I'm not a great lua user I might even be down writing another lua plugin for this, but I have no idea where to start Example Codenot really applicable Neovim version (nvim -v)v0.11.0 Operating system/versionubuntu 24.04 Output of :checkhealth rustaceanvim==============================================================================
rustaceanvim: require("rustaceanvim.health").check()
Checking for Lua dependencies ~
- OK optional dependency nvim-dap not installed. Needed for debugging features [mfussenegger/nvim-dap](https://github.com/mfussenegger/nvim-dap)
Checking external dependencies ~
- OK rust-analyzer: found rust-analyzer 1.90.0-nightly (35f6036 2025-06-29)
- OK Cargo: found cargo 1.90.0-nightly (930b4f62c 2025-06-28)
- OK rustc: found rustc 1.90.0-nightly (35f603652 2025-06-29)
Checking config ~
- OK No errors found in config.
Checking for conflicting plugins ~
- OK No conflicting plugins detected.
Checking for tree-sitter parser ~
- OK tree-sitter parser for Rust detected. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey 👋 What you're requesting isn't really specific to rustaceanvim. You can use Regarding how to implement that in the file browser plugins, I'd suggest asking for guidance there. |
Beta Was this translation helpful? Give feedback.
-
makes sense! thank you for shoving me in the right direction |
Beta Was this translation helpful? Give feedback.
Hey 👋
What you're requesting isn't really specific to rustaceanvim. You can use
:h vim.diagnostic.get
to get diagnostics, regardless of the language.rust-analyzer publishes diagnostics for the whole workspace (not all language servers do).
Regarding how to implement that in the file browser plugins, I'd suggest asking for guidance there.