Rust: Difference between revisions
imported>Mic92 Created page with "This article is about the [rust programming language](https://www.rust-lang.org). == Rust Nightlies == Either use [rust overlay](https://nixos.org/nixpkgs/manual/#using-the-..." |
imported>Mic92 fix evaluation of neovim |
||
Line 23: | Line 23: | ||
}}' | }}' | ||
''; | ''; | ||
packages.nixbundle.start = with vimPlugins | packages.nixbundle.start = with vimPlugins; [ | ||
nvim-completion-manager | nvim-completion-manager | ||
nvim-cm-racer | nvim-cm-racer |
Revision as of 16:15, 2 November 2017
This article is about the [rust programming language](https://www.rust-lang.org).
Rust Nightlies
Either use [rust overlay](https://nixos.org/nixpkgs/manual/#using-the-rust-nightlies-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 src $out'';
}}'
'';
packages.nixbundle.start = with vimPlugins; [
nvim-completion-manager
nvim-cm-racer
];
};
})