mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
modules/dependencies: add wezterm
This commit is contained in:
parent
1e3fe17dd7
commit
68c806bd60
3 changed files with 21 additions and 29 deletions
|
@ -44,6 +44,7 @@ let
|
|||
typst.default = "typst";
|
||||
ueberzug.default = "ueberzugpp";
|
||||
websocat.default = "websocat";
|
||||
wezterm.default = "wezterm";
|
||||
which.default = "which";
|
||||
yazi.default = "yazi";
|
||||
yq.default = "yq";
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
|
@ -13,11 +12,13 @@ lib.nixvim.plugins.neovim.mkNeovimPlugin {
|
|||
|
||||
maintainers = [ lib.maintainers.khaneliman ];
|
||||
|
||||
extraOptions = {
|
||||
weztermPackage = lib.mkPackageOption pkgs "wezterm" {
|
||||
nullable = true;
|
||||
};
|
||||
};
|
||||
imports = [
|
||||
# TODO: added 2025-04-07, remove after 25.05
|
||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
||||
plugin = "wezterm";
|
||||
packageName = "wezterm";
|
||||
})
|
||||
];
|
||||
|
||||
settingsOptions = {
|
||||
create_commands = defaultNullOpts.mkBool true ''
|
||||
|
@ -29,9 +30,7 @@ lib.nixvim.plugins.neovim.mkNeovimPlugin {
|
|||
create_commands = false;
|
||||
};
|
||||
|
||||
extraConfig = cfg: {
|
||||
extraPackages = [
|
||||
cfg.weztermPackage
|
||||
];
|
||||
extraConfig = {
|
||||
dependencies.wezterm.enable = lib.mkDefault true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,23 +1,15 @@
|
|||
{
|
||||
empty =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
plugins.wezterm = {
|
||||
enable = true;
|
||||
weztermPackage = pkgs.wezterm;
|
||||
};
|
||||
};
|
||||
|
||||
defaults =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
plugins.wezterm = {
|
||||
enable = true;
|
||||
weztermPackage = pkgs.wezterm;
|
||||
|
||||
settings = {
|
||||
create_commands = true;
|
||||
};
|
||||
empty = {
|
||||
plugins.wezterm.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.wezterm = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
create_commands = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue