mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-13 10:44:34 +02:00
plugins/zellij: init
This commit is contained in:
parent
f1cb9f0746
commit
4012cdbbf1
3 changed files with 58 additions and 0 deletions
|
@ -190,6 +190,7 @@
|
||||||
./utils/which-key.nix
|
./utils/which-key.nix
|
||||||
./utils/wilder.nix
|
./utils/wilder.nix
|
||||||
./utils/yanky.nix
|
./utils/yanky.nix
|
||||||
|
./utils/zellij.nix
|
||||||
./utils/zk.nix
|
./utils/zk.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
39
plugins/utils/zellij.nix
Normal file
39
plugins/utils/zellij.nix
Normal file
|
@ -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
tests/test-sources/plugins/utils/zellij.nix
Normal file
18
tests/test-sources/plugins/utils/zellij.nix
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
empty = {
|
||||||
|
plugins.zellij.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
defaults = {
|
||||||
|
plugins.zellij = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
path = "zellij";
|
||||||
|
replaceVimWindowNavigationKeybinds = false;
|
||||||
|
vimTmuxNavigatorKeybinds = false;
|
||||||
|
debug = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue