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