nixos/pkgsets/nvim/lsp/rust.nix

13 lines
241 B
Nix

{
lib,
config,
pkgs,
...
}:
lib.optionalString (lib.elem "nvim::lsp::rust" config.machine.pkgs) # lua
''
lspconfig.rust_analyzer.setup({
cmd = {"${pkgs.rustup}/bin/rustup", "run", "nightly", "rust-analyzer"}
})
''