mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-02 21:34:33 +02:00
helpers: add mkPackageOption + refactoring (#144)
This commit is contained in:
parent
b9a5c9c2b5
commit
b724085447
58 changed files with 94 additions and 258 deletions
|
@ -46,11 +46,7 @@ with lib; {
|
|||
in
|
||||
{
|
||||
enable = mkEnableOption "rust tools plugins";
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.vimPlugins.rust-tools-nvim;
|
||||
description = "Package to use for rust-tools";
|
||||
};
|
||||
package = helpers.mkPackageOption "rust-tools" pkgs.vimPlugins.rust-tools-nvim;
|
||||
serverPackage = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.rust-analyzer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue