From 1f198c404848abc9fe892e162838b16ca67c309e Mon Sep 17 00:00:00 2001 From: Soispha Date: Thu, 24 Aug 2023 21:39:28 +0200 Subject: Feat(hm/conf/neovim/plugins/leap): Init --- .../config/neovim/nixvim/plugins/leap/default.nix | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 home-manager/soispha/config/neovim/nixvim/plugins/leap/default.nix diff --git a/home-manager/soispha/config/neovim/nixvim/plugins/leap/default.nix b/home-manager/soispha/config/neovim/nixvim/plugins/leap/default.nix new file mode 100644 index 00000000..715ce959 --- /dev/null +++ b/home-manager/soispha/config/neovim/nixvim/plugins/leap/default.nix @@ -0,0 +1,56 @@ +{...}: { + 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