How do I make VSCodium use the rust-analyzer
binary from my project’s flake.nix devShell?
The rust-lang.rust-analyzer
plugin bundles a rust-analyzer
binary that it defaults to, but it is too old for the nightly compiler. Is there a simple way to sync the rust-analyzer plugin in VSCodium with the path determined by the flake’s devShell?
I have a VSCodium installation with the following configuration:
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
(vscode-with-extensions.override {
vscode = vscodium;
vscodeExtensions = with vscode-extensions; [
# Nix
bbenoist.nix
kamadorueda.alejandra
# Rust
rust-lang.rust-analyzer
tamasfe.even-better-toml
serayuzgur.crates
# Writing
yzhang.markdown-all-in-one
nvarner.typst-lsp
stkb.rewrap
# General
eamodio.gitlens
asvetliakov.vscode-neovim
];
})
];
}