summaryrefslogtreecommitdiff
path: root/plugins/rust/rust.plugin.zsh
AgeCommit message (Collapse)Author
2022-03-28chore: removing old completion code (#10616)Carlo Sala
2022-01-08fix(rust): fix `cargo` completion when sysroot contains spaces (#10571)Joey Territo
When generating completions for Cargo, if the Rust sysroot (i.e. `rustc +${${(z)$(rustup default)}[1]} --print sysroot`) contains spaces, Cargo completions will not work because the spaces are not escaped, thus passing two arguments to the "source" command instead of one. The spaces need to be escaped for this to work.
2022-01-05style: declare globals properlyMarc Cornellà
By default, `typeset` defines variables locally unless in the main scope. This is specially bad when using `omz plugin load`, which happens inside a function, so the declared variables don't continue being defined when the function finishes and the main scope reappears.
2021-12-29fix(rust): use default toolchain when completing `cargo`Marc Cornellà
2021-12-28refactor(rust)!: merge `cargo` and `rustup` plugins into `rust` plugin (#10270)Carlo Sala
BREAKING CHANGE: `cargo` and `rustup` plugins have been moved to the `rust` plugin since they're part of the Rust toolchain. If you're using these, update your .zshrc file to use `rust` instead. Closes #10270 Co-authored-by: Marc Cornellà <hello@mcornella.com>