aboutsummaryrefslogtreecommitdiffstats
path: root/after/plugin/hydra.lua
diff options
context:
space:
mode:
Diffstat (limited to 'after/plugin/hydra.lua')
-rw-r--r--after/plugin/hydra.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/after/plugin/hydra.lua b/after/plugin/hydra.lua
new file mode 100644
index 0000000..10c3ddb
--- /dev/null
+++ b/after/plugin/hydra.lua
@@ -0,0 +1,21 @@
+local ok, hydra = pcall(require, "hydra")
+if not ok then
+ return
+end
+
+-- Windows management, move and resize
+hydra({
+ name = "windows",
+ mode = "n",
+ body = "<C-w>",
+ heads = {
+ { '<C-l>', '<C-w>l' },
+ { '<C-h>', '<C-w>h' },
+ { '<C-j>', '<C-w>j' },
+ { '<C-k>', '<C-w>k' },
+ { 'L', '<C-w>2>' },
+ { 'H', '<C-w>2<' },
+ { 'J', '<C-w>2-' },
+ { 'K', '<C-w>2+' },
+ },
+})