From 4d7fbc33a139d6484ae86c45b570b2c99fc737ef Mon Sep 17 00:00:00 2001 From: Petri Hienonen Date: Thu, 4 Dec 2025 18:05:00 +0200 Subject: Test --- home/chawan.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 home/chawan.nix (limited to 'home/chawan.nix') 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()' + ''; +} -- cgit v1.2.3-70-g09d2