Skip to content

Commit

Permalink
plugins/flutter-tools: add flutterPackageOption
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Jan 14, 2025
1 parent 4282b73 commit d9c4e15
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion plugins/by-name/flutter-tools/default.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
{ lib, ... }:
{
lib,
pkgs,
config,
...
}:
lib.nixvim.plugins.mkNeovimPlugin {
name = "flutter-tools";
packPathName = "flutter-tools.nvim";
package = "flutter-tools-nvim";

maintainers = [ lib.maintainers.khaneliman ];

extraOptions = {
flutterPackage = lib.mkPackageOption pkgs "flutter" {
nullable = true;
};
};
extraConfig = cfg: {
extraPackages = [ cfg.flutterPackage ];
};

settingsOptions = import ./settings-options.nix lib;

settingsExample = {
Expand Down

0 comments on commit d9c4e15

Please sign in to comment.