- Add aerc, a terminal email client - Switch to gruvbox colorschemes - Improve base16 Support in kakoune - Add buffer switch binding in kakoune - Correct quick file openers to real files in kakoune - Add proper tab indentation and quick selection to kakoune - Add markdown support and harper spellcheck in kakoune - Import shellpath into a kakoune variable so it can be used in kakscripts - Add render markdown on toggle to kakoune to see approximate of final output - Add lazygit with config for visual git grepping - Add gdb debugger to C language - Add CLI tools: pv, mtr, shellcheck, wiki-tui and ddgr - Add tree as an alias to eza - Bash source .profile - Theme yazi with base16 - Add zk zettelkasten for note taking - Make home.nix imports look nicer
124 lines
3.2 KiB
Nix
124 lines
3.2 KiB
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
programs.yazi = {
|
|
enable = true;
|
|
keymap = {
|
|
mgr.prepend_keymap = [
|
|
{ run = "arrow -1"; on = [ "e" ]; }
|
|
{ run = "arrow 1"; on = [ "n" ]; }
|
|
{ run = "arrow -5"; on = [ "E" ]; }
|
|
{ run = "arrow 5"; on = [ "N" ]; }
|
|
{ run = "leave"; on = [ "h" ]; }
|
|
{ run = "enter"; on = [ "i" ]; }
|
|
{ run = "back"; on = [ "H" ]; }
|
|
{ run = "forward"; on = [ "I" ]; }
|
|
{ run = "seek -5"; on = [ "<C-e>" ]; }
|
|
{ run = "seek 5"; on = [ "<C-n>" ]; }
|
|
{ run = "link"; on = [ "k" ]; }
|
|
{ run = "link --relative"; on = [ "K" ]; }
|
|
{ run = "find_arrow"; on = [ "j" ]; }
|
|
{ run = "find_arrow --previous"; on = [ "J" ]; }
|
|
];
|
|
|
|
tasks.prepend_keymap = [
|
|
{ run = "close"; on = [ "W" ]; }
|
|
{ run = "arrow -1"; on = [ "e" ]; }
|
|
{ run = "arrow 1"; on = [ "n" ]; }
|
|
];
|
|
|
|
spot.prepend_keymap = [
|
|
{ run = "arrow -1"; on = [ "e" ]; }
|
|
{ run = "arrow 1"; on = [ "n" ]; }
|
|
{ run = "arrow -5"; on = [ "E" ]; }
|
|
{ run = "arrow 5"; on = [ "N" ]; }
|
|
];
|
|
|
|
input.prepend_keymap = [
|
|
{ run = "insert"; on = [ "l" ]; }
|
|
{ run = [ "move -999" "insert" ]; on = [ "<C-h>" ]; }
|
|
{ run = [ "move 999" "insert --append" ]; on = [ "<C-i>" ]; }
|
|
{ run = "move -1"; on = [ "h" ]; }
|
|
{ run = "move 1"; on = [ "i" ]; }
|
|
{ run = "forward --end-of-word"; on = [ "=" ]; }
|
|
{ run = "move -999"; on = [ "H" ]; }
|
|
{ run = "move 999"; on = [ "I" ]; }
|
|
{ run = [ "delete" "move 1 --in-operating" ]; on = [ "x" ]; }
|
|
{ run = "undo"; on = [ "u" ]; }
|
|
{ run = "redo"; on = [ "U" ]; }
|
|
];
|
|
|
|
cmp.prepend_keymap = [
|
|
{ run = "arrow -1"; on = [ "<C-e>" ]; }
|
|
{ run = "arrow 1"; on = [ "<C-n>" ]; }
|
|
];
|
|
|
|
help.prepend_keymap = [
|
|
{ run = "arrow -1"; on = [ "e" ]; }
|
|
{ run = "arrow 1"; on = [ "n" ]; }
|
|
{ run = "arrow -5"; on = [ "E" ]; }
|
|
{ run = "arrow 5"; on = [ "N" ]; }
|
|
];
|
|
};
|
|
|
|
|
|
flavors.base16 = pkgs.fetchFromGitHub {
|
|
owner = "matt-dong-123";
|
|
repo = "base16.yazi";
|
|
rev = "master";
|
|
hash = "sha256-1WhixzYE1zsXg9o6T/YKWJgzfRZnzsmpiUIfi+j4H9Q=";
|
|
};
|
|
|
|
theme = {
|
|
flavor = {
|
|
dark = "base16";
|
|
light = "base16";
|
|
};
|
|
|
|
indicator = {
|
|
padding = { open = "█"; close = "█"; };
|
|
};
|
|
|
|
tabs = {
|
|
sep_inner = { open = ""; close = ""; };
|
|
sep_outer = { open = ""; close = ""; };
|
|
};
|
|
|
|
status = {
|
|
sep_left = { open = ""; close = ""; };
|
|
sep_right = { open = ""; close = ""; };
|
|
};
|
|
|
|
icon = {
|
|
globs = [ ];
|
|
dirs = [ ];
|
|
files = [ ];
|
|
exts = [ ];
|
|
conds = [ ];
|
|
};
|
|
|
|
cmp = {
|
|
icon_file = "";
|
|
icon_folder = "";
|
|
icon_command = "";
|
|
};
|
|
};
|
|
|
|
settings = {
|
|
mgr = {
|
|
sort_by = "mtime";
|
|
sort_reverse = true;
|
|
show_hidden = true;
|
|
linemode = "size";
|
|
scrolloff = 12;
|
|
ratio = [ 1 2 0 ];
|
|
};
|
|
opener = {
|
|
edit = [
|
|
{ run = "kak %s"; block = true; for = "unix"; }
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|