Skip to content

Commit

Permalink
plugins/zellij: init
Browse files Browse the repository at this point in the history
  • Loading branch information
hmajid2301 authored and GaetanLepage committed Mar 27, 2024
1 parent f1cb9f0 commit 4012cdb
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugins/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@
./utils/which-key.nix
./utils/wilder.nix
./utils/yanky.nix
./utils/zellij.nix
./utils/zk.nix
];
}
39 changes: 39 additions & 0 deletions plugins/utils/zellij.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
lib,
helpers,
config,
pkgs,
...
}:
helpers.neovim-plugin.mkNeovimPlugin config {
name = "zellij";
originalName = "zellij.nvim";
defaultPackage = pkgs.vimPlugins.zellij-nvim;

maintainers = [lib.maintainers.hmajid2301];

settingsOptions = {
path = helpers.defaultNullOpts.mkStr "zellij" ''
Path to the zellij binary.
'';

replaceVimWindowNavigationKeybinds = helpers.defaultNullOpts.mkBool false ''
Will set keybinds like `<C-w>h` to left.
'';

vimTmuxNavigatorKeybinds = helpers.defaultNullOpts.mkBool false ''
Will set keybinds like `<C-h>` to left.
'';

debug = helpers.defaultNullOpts.mkBool false ''
Will log things to `/tmp/zellij.nvim`.
'';
};

settingsExample = {
path = "zellij";
replaceVimWindowNavigationKeybinds = true;
vimTmuxNavigatorKeybinds = false;
debug = true;
};
}
18 changes: 18 additions & 0 deletions tests/test-sources/plugins/utils/zellij.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
empty = {
plugins.zellij.enable = true;
};

defaults = {
plugins.zellij = {
enable = true;

settings = {
path = "zellij";
replaceVimWindowNavigationKeybinds = false;
vimTmuxNavigatorKeybinds = false;
debug = false;
};
};
};
}

0 comments on commit 4012cdb

Please sign in to comment.