mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-14 03:04:34 +02:00
plugins/cmp-fish: add fishPackage option
This commit is contained in:
parent
4dea1478eb
commit
35c0f71457
2 changed files with 28 additions and 0 deletions
27
plugins/completion/cmp/sources/cmp-fish.nix
Normal file
27
plugins/completion/cmp/sources/cmp-fish.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.plugins.cmp-fish;
|
||||
in {
|
||||
meta.maintainers = [maintainers.GaetanLepage];
|
||||
|
||||
options.plugins.cmp-fish = {
|
||||
fishPackage = mkOption {
|
||||
type = with types; nullOr package;
|
||||
default = pkgs.fish;
|
||||
example = "null";
|
||||
description = ''
|
||||
Which package to use for `fish`.
|
||||
Set to `null` to disable its automatic installation.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
extraPackages = [cfg.fishPackage];
|
||||
};
|
||||
}
|
|
@ -21,6 +21,7 @@ in {
|
|||
[
|
||||
./codeium-nvim.nix
|
||||
./copilot-cmp.nix
|
||||
./cmp-fish.nix
|
||||
./cmp-tabby.nix
|
||||
./cmp-tabnine.nix
|
||||
./crates-nvim.nix
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue