diff options
| author | Petri Hienonen <petri.hienonen@gmail.com> | 2024-05-23 13:56:00 +0300 |
|---|---|---|
| committer | Petri Hienonen <petri.hienonen@gmail.com> | 2025-11-30 12:29:57 +0200 |
| commit | 08297376a85a1719518507e54fca9de954d2376a (patch) | |
| tree | 3b9c58304b40248533bbb2bb5b7bad2da9da1ff0 /home/chawan/default.nix | |
| parent | 75c2af4aedd2ac5c2cfc74b346625fa4b265541d (diff) | |
| download | nixos-08297376a85a1719518507e54fca9de954d2376a.tar.zst | |
Agenix configuration
Diffstat (limited to 'home/chawan/default.nix')
| -rw-r--r-- | home/chawan/default.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/home/chawan/default.nix b/home/chawan/default.nix new file mode 100644 index 0000000..b343c11 --- /dev/null +++ b/home/chawan/default.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()' + ''; +} |
