nvimtools / hydra.nvim

Create custom submodes and menus
MIT License
154 stars 9 forks source link

Examples simply don't work #38

Closed hrqmonteiro closed 4 months ago

hrqmonteiro commented 6 months ago

Tried setting the "Git" example:

Lazy: image image image

Hydra.lua: image

And when i press <Leader>g simply nothing happens:

https://github.com/nvimtools/hydra.nvim/assets/17055027/52d5d698-84f3-4d78-8d39-4d55c0e30f27

miversen33 commented 6 months ago

Can you provide the version of neovim you are using?

Also, screenshots of configurations aren't useful, please provide the actual configurations you are using

hrqmonteiro commented 6 months ago

Can you provide the version of neovim you are using?

Also, screenshots of configurations aren't useful, please provide the actual configurations you are using

NVIM v0.9.5
Build type: RelWithDebInfo
LuaJIT 2.1.1707061634
Compilation: /usr/bin/cc  -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wvla -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -fno-common -Wno-unused-result -Wimplicit-fallthrough -fdiagnostics-color=auto -fstack-protector-strong -DUNIT_TESTING -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -I/usr/include/luajit-5_1-2.1 -I/usr/include -I/usr/include/lua5.1 -I/home/abuild/rpmbuild/BUILD/neovim-0.9.5/build/src/nvim/auto -I/home/abuild/rpmbuild/BUILD/neovim-0.9.5/build/include -I/home/abuild/rpmbuild/BUILD/neovim-0.9.5/build/cmake.config -I/home/abuild/rpmbuild/BUILD/neovim-0.9.5/src -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info

My config with only Lazy, Neogit, Gitsigns and Hydra:

https://github.com/hrqmonteiro/nvim

EDIT: fixed wrong repo, is this one

hrqmonteiro commented 6 months ago

I erased my config and started one from scratch, i just have that Hydra on it, basically

Same thing happening, i press Leader+g and it doesn't open:

https://github.com/nvimtools/hydra.nvim/assets/17055027/511b34f6-5bf4-48dd-9250-4ac26db1cff1

matu3ba commented 6 months ago

General tips for regressions:

Sidenode: Issue text could express which example(s) does not work.

miversen33 commented 6 months ago

@hrqmonteiro Are you pressing "the leader key" before pressing "g" in your video?

Your config works just fine if I set the leader to "space" (vim.g.mapleader=" ") though it appears that the default leader key in vim is \.

Looking at your video it appears you are just pressing the g button repeatedly.

I tested your config on both the most recent nvim 0.9.5 stable and nvim 0.10 nightly and it worked as expected on both.

Hydra uses a leader (the head) and a chord (the body). Try setting a leader key and seeing if it works

miversen33 commented 4 months ago

@hrqmonteiro I am going to close this out as a non-issue. If you believe that is incorrect, feel free to reply on this and we can re-open it.