mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
plugins/lsp: use mkPackageOption
for pylsp + rust-analyzer
This commit is contained in:
parent
848246bc64
commit
37165453a9
2 changed files with 6 additions and 14 deletions
|
@ -11,10 +11,8 @@ let
|
|||
in
|
||||
{
|
||||
options.plugins.lsp.servers.pylsp = {
|
||||
pythonPackage = mkOption {
|
||||
type = lib.types.package;
|
||||
description = "Python package to use for lsp.";
|
||||
default = pkgs.python3;
|
||||
pythonPackage = mkPackageOption pkgs "python" {
|
||||
default = "python3";
|
||||
};
|
||||
|
||||
# All settings are documented here:
|
||||
|
|
|
@ -18,11 +18,8 @@ in
|
|||
description = "Whether to install `cargo`.";
|
||||
};
|
||||
|
||||
cargoPackage = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.cargo;
|
||||
description = "Which package to use for `cargo`.";
|
||||
};
|
||||
# TODO: make nullable?
|
||||
cargoPackage = mkPackageOption pkgs "cargo" { };
|
||||
|
||||
installRustc = mkOption {
|
||||
type = with types; nullOr bool;
|
||||
|
@ -31,11 +28,8 @@ in
|
|||
description = "Whether to install `rustc`.";
|
||||
};
|
||||
|
||||
rustcPackage = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.rustc;
|
||||
description = "Which package to use for `rustc`.";
|
||||
};
|
||||
# TODO: make nullable
|
||||
rustcPackage = mkPackageOption pkgs "rustc" { };
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
warnings =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue