about summary refs log tree commit diff stats
path: root/modules/home/conf/nvim/plgs/lsp/servers/servers/rust-analyzer.nix
blob: 5da61a714d6a6c4a5bf9f8f8fbbb322532fc8a7e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{...}: {
  programs.nixvim.plugins.lsp.servers = {
    rust_analyzer = {
      enable = true;
      settings = {
        typing.autoClosingAngleBrackets.enable = true;

        # Check with `cargo clippy` instead of just `cargo check`
        check.command = "clippy";
      };
      # NOTE: These should be provided by the devenv, to support nightly and
      # such things <2023-11-25>
      installCargo = false;
      installRustc = false;
    };
  };
}