diff options
| author | Petri Hienonen <petri.hienonen@gmail.com> | 2025-12-04 18:05:00 +0200 |
|---|---|---|
| committer | Petri Hienonen <petri.hienonen@gmail.com> | 2025-12-04 20:39:41 +0200 |
| commit | 4d7fbc33a139d6484ae86c45b570b2c99fc737ef (patch) | |
| tree | 46c5788b8ed0eaf6f6581b3b7a87d633d842a8dd /home/chawan.nix | |
| parent | 7ab57a27c9648b3a8e12f755e03fc84eb50291b4 (diff) | |
| download | nixos-4d7fbc33a139d6484ae86c45b570b2c99fc737ef.tar.zst | |
Test
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()' + ''; +} |
