From 3f600ab07dbad3b6dd7655587ddea158b19aea71 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sat, 26 Aug 2023 23:42:21 +0200 Subject: Refactor(treewide): Abbreviate path names --- hm/soispha/conf/nvim/plugins/leap/default.nix | 58 +++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 hm/soispha/conf/nvim/plugins/leap/default.nix (limited to 'hm/soispha/conf/nvim/plugins/leap/default.nix') diff --git a/hm/soispha/conf/nvim/plugins/leap/default.nix b/hm/soispha/conf/nvim/plugins/leap/default.nix new file mode 100644 index 00000000..bffdf33c --- /dev/null +++ b/hm/soispha/conf/nvim/plugins/leap/default.nix @@ -0,0 +1,58 @@ +{...}: { + programs.nixvim = { + plugins.leap = { + enable = true; + addDefaultMappings = false; # They don't work with dvorak. + safeLabels = [ + "f" + "j" + "k" + "l" + "/" + "z" + "S" + "F" + "J" + "K" + "L" + "H" + "W" + "E" + "M" + "B" + "U" + "X" + "?" + "Z" + ]; + }; + maps = { + normalVisualOp = { + "m" = { + action = "(leap-forward-to)"; + desc = "leap forward to"; + }; + "M" = { + action = "(leap-backward-to)"; + desc = "leap backward to"; + }; + "gs" = { + action = "(leap-from-window)"; + desc = "leap to enterable windows"; + }; + }; + visual = { + /* + "x" = { + action = "(leap-forward-till)"; + desc = "leap forward till"; + }; + "X" = { + action = "(leap-backward-till)"; + desc = "leap backward till"; + }; + */ + }; + }; + }; +} -- cgit 1.4.1