diff options
Diffstat (limited to 'home/chawan.nix')
| -rw-r--r-- | home/chawan.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/home/chawan.nix b/home/chawan.nix new file mode 100644 index 0000000..b343c11 --- /dev/null +++ b/home/chawan.nix @@ -0,0 +1,22 @@ +{ vars, pkgs, ... }: + +{ + xdg.configFile."/home/petri/.config/chawan/config.toml".text = '' + [buffer] + autofocus = true + images = true + styling = true + scripting = true + history = true + + [input] + vi-numeric-prefix = true + + [page] + # Here, the arrow function will be called with the vi numbered prefix if + # one was input, and with no argument otherwise. + # The numeric prefix can never be zero, so it is safe to test for undefined + # using the ternary operator. + G = 'n => n ? pager.gotoLine(n) : pager.cursorLastLine()' + ''; +} |
