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