From 7dd7603af15f6b8c3acc31c36c9a81ffb24b13f2 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Fri, 24 May 2024 14:16:11 -0500 Subject: [PATCH] fix(nvim): make `hydra` correctly pick up keys and hints --- .../nvim/lua/plugins/configs/hydra.lua | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/users/price/dots/.config/nvim/lua/plugins/configs/hydra.lua b/users/price/dots/.config/nvim/lua/plugins/configs/hydra.lua index 2666b151..a7c36b6e 100644 --- a/users/price/dots/.config/nvim/lua/plugins/configs/hydra.lua +++ b/users/price/dots/.config/nvim/lua/plugins/configs/hydra.lua @@ -12,6 +12,10 @@ return { { "<" }, { "+" }, { "-" }, + { "zl" }, + { "zL" }, + { "zh" }, + { "zH" }, }, event = { "BufReadPre", "BufNewFile" }, config = function() @@ -20,13 +24,13 @@ return { -- Side Scroll hydra({ name = "Side scroll", - config = { - { - position = "bottom-right", - }, - }, mode = "n", body = "z", + config = { + hint = { + type = "window", + }, + }, heads = { { "h", "5zh" }, { "l", "5zl", { desc = "←/→" } }, @@ -118,6 +122,11 @@ return { name = "Window Sizing", mode = "n", body = "", + config = { + hint = { + type = "window", + }, + }, heads = { { "<", "2<" }, { ">", "2>", { desc = "←/→" } },