nixos/pkgsets/nvim/lsp/rust.nix

14 lines
241 B
Nix
Raw Normal View History

{
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"}
})
''