Skip to content

Commit

Permalink
rust-tools: Add rust-analyzer to the extraPackages (nix-community#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
traxys authored Jan 24, 2023
1 parent 63c256d commit 66b1b09
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugins/languages/rust.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ with lib; {
default = pkgs.vimPlugins.rust-tools-nvim;
description = "Package to use for rust-tools";
};
serverPackage = mkOption {
type = types.package;
default = pkgs.rust-analyzer;
description = "Package to use for rust-analyzer";
};

executor = mkNullableOptionWithDefault {
type = types.enum [ "termopen" "quickfix" ];
Expand Down Expand Up @@ -160,6 +165,7 @@ with lib; {
in
mkIf cfg.enable {
extraPlugins = with pkgs.vimPlugins; [ nvim-lspconfig cfg.package ];
extraPackages = [ cfg.serverPackage ];

plugins.lsp.postConfig =
let
Expand Down

0 comments on commit 66b1b09

Please sign in to comment.