Rust: Difference between revisions
imported>Mic92 fix example |
imported>Konfou m Capitalization |
||
Line 1: | Line 1: | ||
This article is about the [https://www.rust-lang.org | This article is about the [https://www.rust-lang.org Rust programming language]. | ||
== Rust Nightlies == | == Rust Nightlies == | ||
Either use [https://nixos.org/nixpkgs/manual/#using-the-rust-nightlies-overlay | Either use [https://nixos.org/nixpkgs/manual/#using-the-rust-nightlies-overlay Rust overlay] or rustup to get install Rust nightlies. | ||
== Neovim Completion == | == Neovim Completion == |
Revision as of 16:41, 3 February 2021
This article is about the Rust programming language.
Rust Nightlies
Either use Rust overlay or rustup to get install Rust nightlies.
Neovim Completion
Racer completion can be configured using the following snippet:
(neovim.override {
configure = {
customRC = ''
if filereadable($HOME . "/.vimrc")
source ~/.vimrc
endif
let $RUST_SRC_PATH = '${stdenv.mkDerivation {
inherit (rustc) src;
inherit (rustc.src) name;
phases = ["unpackPhase" "installPhase"];
installPhase = ''cp -r library $out'';
}}'
'';
packages.nixbundle.start = with vimPlugins; [
nvim-completion-manager
nvim-cm-racer
];
};
})