mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
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:
parent
3fa487c81d
commit
abe2211aef
2 changed files with 60 additions and 0 deletions
37
plugins/by-name/wezterm/default.nix
Normal file
37
plugins/by-name/wezterm/default.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue