depot/third_party/home-manager/tests/modules/programs/sioyek/sioyek-basic-configuration.nix
Default email 2eafb8192e Project import generated by Copybara.
GitOrigin-RevId: 176e455371a8371586e8a3ff0d56ee9f3ca2324e
2023-01-10 02:35:00 -07:00

36 lines
873 B
Nix

{ config, pkgs, ... }:
{
programs.sioyek = {
enable = true;
bindings = {
"move_down" = "j";
"move_left" = "h";
"move_right" = "l";
"move_up" = "k";
"screen_down" = [ "d" "<C-d>" ];
"screen_up" = [ "u" "<C-u>" ];
};
config = {
"dark_mode_background_color" = "0.0 0.0 0.0";
"dark_mode_contrast" = "0.8";
};
};
test.stubs.sioyek = { };
nmt = {
description = "Sioyek basic setup with sample configuration";
script = ''
assertFileExists home-files/.config/sioyek/prefs_user.config
assertFileContent home-files/.config/sioyek/prefs_user.config ${
./test_prefs_user.config
}
assertFileExists home-files/.config/sioyek/keys_user.config
assertFileContent home-files/.config/sioyek/keys_user.config ${
./test_keys_user.config
}
'';
};
}