fix(nvim): make hydra
correctly pick up keys and hints
All checks were successful
Check Formatting of Files / Check-Formatting (push) Successful in 1m29s
All checks were successful
Check Formatting of Files / Check-Formatting (push) Successful in 1m29s
This commit is contained in:
parent
2536aeb09b
commit
7dd7603af1
@ -12,6 +12,10 @@ return {
|
|||||||
{ "<C-w><" },
|
{ "<C-w><" },
|
||||||
{ "<C-w>+" },
|
{ "<C-w>+" },
|
||||||
{ "<C-w>-" },
|
{ "<C-w>-" },
|
||||||
|
{ "zl" },
|
||||||
|
{ "zL" },
|
||||||
|
{ "zh" },
|
||||||
|
{ "zH" },
|
||||||
},
|
},
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
config = function()
|
config = function()
|
||||||
@ -20,13 +24,13 @@ return {
|
|||||||
-- Side Scroll
|
-- Side Scroll
|
||||||
hydra({
|
hydra({
|
||||||
name = "Side scroll",
|
name = "Side scroll",
|
||||||
config = {
|
|
||||||
{
|
|
||||||
position = "bottom-right",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
mode = "n",
|
mode = "n",
|
||||||
body = "z",
|
body = "z",
|
||||||
|
config = {
|
||||||
|
hint = {
|
||||||
|
type = "window",
|
||||||
|
},
|
||||||
|
},
|
||||||
heads = {
|
heads = {
|
||||||
{ "h", "5zh" },
|
{ "h", "5zh" },
|
||||||
{ "l", "5zl", { desc = "←/→" } },
|
{ "l", "5zl", { desc = "←/→" } },
|
||||||
@ -118,6 +122,11 @@ return {
|
|||||||
name = "Window Sizing",
|
name = "Window Sizing",
|
||||||
mode = "n",
|
mode = "n",
|
||||||
body = "<C-w>",
|
body = "<C-w>",
|
||||||
|
config = {
|
||||||
|
hint = {
|
||||||
|
type = "window",
|
||||||
|
},
|
||||||
|
},
|
||||||
heads = {
|
heads = {
|
||||||
{ "<", "2<C-w><" },
|
{ "<", "2<C-w><" },
|
||||||
{ ">", "2<C-w>>", { desc = "←/→" } },
|
{ ">", "2<C-w>>", { desc = "←/→" } },
|
||||||
|
Loading…
Reference in New Issue
Block a user