Comments (2)
Afaik rust-analyzer already has support for standalone files: rust-lang/rust-analyzer#8955.
As for crates.nvim it should be possible, but will be a decent amount of work. I'm currently debating whether to rewrite this whole plugin in rust or using https://github.com/saecki/crates-nvim-rs just as the toml parser. Until then it's unlikely though not impossible that I will implement this feature.
from crates.nvim.
Afaik rust-analyzer already has support for standalone files: rust-lang/rust-analyzer#8955.
Ok, but apparently it doesn't just work out of the box. But I made a snippet that pretty much does just that: mrcjkb/rustaceanvim#253 (reply in thread).
But it only works with the standard Rust and is still useless for when using the third-party libraries. Although, if there is no Cargo.toml to check the dependencies from, how would it know which libraries to load. Would be cool if rust-analyzer can read the rust-scripts's in source file dependencies. Then all the problems would be solved.
Until then it's unlikely though not impossible that I will implement this feature.
Sure. No rush.
from crates.nvim.
Related Issues (20)
- Crates.nvim is unable to fetch any dependencies HOT 7
- Error when using workspace crate with custom features HOT 9
- Figure out why CI is broken on PRs by contributors other than me
- autoupdate (throttle) exception. HOT 3
- Crate versions are lexicographically sorted in completion HOT 6
- `health#report_start` deprecation warning HOT 1
- feature: show version from workspace `Cargo.toml`
- False positive `Incorrect crate name casing` diagnostic
- Multiline arrays and features HOT 3
- null-ls is archived HOT 16
- nvim-cmp trigger needs some improvement HOT 6
- Mistake in readme HOT 1
- Toml LSP completion takes precendence over crates HOT 7
- `nvim-cmp` completions for crates don't show up HOT 6
- Breaking changes on main HOT 2
- Freezes neovim for several seconds HOT 2
- Ignoring invalid config key 'src.cmp' HOT 5
- cannot resume dead coroutine HOT 2
- Use lua type annotations instead of teal HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crates.nvim.