nichts/modules/programs/editors/kakoune/mappings.nix

49 lines
955 B
Nix
Raw Normal View History

2024-10-28 21:52:16 +01:00
{
config,
lib,
pkgs,
...
}: let
inherit (config.modules.other.system) username;
in {
config.home-manager.users.${username}.programs.kakoune.config.keyMappings = [
{
mode = "normal";
key = "<esc>";
effect = ";,";
docstring = "Press escape to clear highlighted text and collapse cursors";
}
{
mode = "normal";
key = "<c-v>";
effect = ":comment-line<ret>";
docstring = "Comment a line with <c-v>!";
}
{
mode = "normal";
key = "b";
effect = ":db<ret>";
docstring = "close current buffer";
}
{
mode = "normal";
key = "n";
effect = ":bp<ret>";
docstring = "go to next buffer";
}
{
mode = "normal";
key = "m";
effect = ":bn<ret>";
docstring = "go to next buffer";
}
{
mode = "normal";
key = " f";
effect = ":fzf-mode<ret>";
docstring = "open fzf";
}
];
}