plugins/wezterm: init

Co-authored-by: Austin Horstman <khaneliman12@gmail.com>
Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
This commit is contained in:
Sammy Etur 2024-12-01 19:15:29 +01:00 committed by Austin Horstman
parent 3fa487c81d
commit abe2211aef
No known key found for this signature in database
2 changed files with 60 additions and 0 deletions

View file

@ -0,0 +1,37 @@
{
lib,
pkgs,
...
}:
let
inherit (lib.nixvim) defaultNullOpts;
in
lib.nixvim.plugins.neovim.mkNeovimPlugin {
name = "wezterm";
packPathName = "wezterm.nvim";
package = "wezterm-nvim";
maintainers = [ lib.maintainers.khaneliman ];
extraOptions = {
weztermPackage = lib.mkPackageOption pkgs "wezterm" {
nullable = true;
};
};
settingsOptions = {
create_commands = defaultNullOpts.mkBool true ''
Whether to create plugin commands.
'';
};
settingsExample = {
create_commands = false;
};
extraConfig = cfg: {
extraPackages = [
cfg.weztermPackage
];
};
}