fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Gabriel Arazassioyek: enable multiple bindings for the same commandbd87a34b

master
873 B36 linesraw
1{ config, pkgs, ... }:
2
3{
4  programs.sioyek = {
5    enable = true;
6    bindings = {
7      "move_down" = "j";
8      "move_left" = "h";
9      "move_right" = "l";
10      "move_up" = "k";
11      "screen_down" = [ "d" "<C-d>" ];
12      "screen_up" = [ "u" "<C-u>" ];
13    };
14    config = {
15      "dark_mode_background_color" = "0.0 0.0 0.0";
16      "dark_mode_contrast" = "0.8";
17    };
18  };
19
20  test.stubs.sioyek = { };
21
22  nmt = {
23    description = "Sioyek basic setup with sample configuration";
24    script = ''
25      assertFileExists home-files/.config/sioyek/prefs_user.config
26      assertFileContent home-files/.config/sioyek/prefs_user.config ${
27        ./test_prefs_user.config
28      }
29
30      assertFileExists home-files/.config/sioyek/keys_user.config
31      assertFileContent home-files/.config/sioyek/keys_user.config ${
32        ./test_keys_user.config
33      }
34    '';
35  };
36}