1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-01 04:23:34 +02:00

zellij: document KDL settings

Describe how to set KDL arguments.
This commit is contained in:
Godefroid Chapelle 2023-11-15 13:57:50 +01:00
parent 280721186a
commit 362f734db7

View File

@ -33,10 +33,32 @@ in {
''; '';
description = '' description = ''
Configuration written to Configuration written to
{file}`$XDG_CONFIG_HOME/zellij/config.yaml`. {file}`$XDG_CONFIG_HOME/zellij/config.kdl`.
See <https://zellij.dev/documentation> for the full See <https://zellij.dev/documentation/options> for the full
list of options. list of options.
KDL is generated from YAML with the ``toKDL`` generator.
To create KDL with arguments like needed among others by ``keybinds``:
```kdl
keybinds {
shared_except "move" "locked" {
bind "Ctrl m" { SwitchToMode "move"; }
}
}
```
use the following:
```yaml
keybinds = {
shared_except = {
_args = [ "move" "locked" ];
bind = {
_args = [ "Ctrl m" ];
SwitchToMode = "move";
};
};
};
```
''; '';
}; };