mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
rust-tools: Add rust-analyzer to the extraPackages (#142)
This commit is contained in:
parent
63c256dc3d
commit
66b1b099cf
1 changed files with 6 additions and 0 deletions
|
@ -51,6 +51,11 @@ with lib; {
|
||||||
default = pkgs.vimPlugins.rust-tools-nvim;
|
default = pkgs.vimPlugins.rust-tools-nvim;
|
||||||
description = "Package to use for rust-tools";
|
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 {
|
executor = mkNullableOptionWithDefault {
|
||||||
type = types.enum [ "termopen" "quickfix" ];
|
type = types.enum [ "termopen" "quickfix" ];
|
||||||
|
@ -160,6 +165,7 @@ with lib; {
|
||||||
in
|
in
|
||||||
mkIf cfg.enable {
|
mkIf cfg.enable {
|
||||||
extraPlugins = with pkgs.vimPlugins; [ nvim-lspconfig cfg.package ];
|
extraPlugins = with pkgs.vimPlugins; [ nvim-lspconfig cfg.package ];
|
||||||
|
extraPackages = [ cfg.serverPackage ];
|
||||||
|
|
||||||
plugins.lsp.postConfig =
|
plugins.lsp.postConfig =
|
||||||
let
|
let
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue