hydra.nvim icon indicating copy to clipboard operation
hydra.nvim copied to clipboard

Bug: The hydra does not pickup the body correctly.

Open Aleod-m opened this issue 2 years ago • 2 comments

I tried using <Leader>s for my split management hydra. But it was not recognized. Instead it would register the space and s. As i use space as my leader i remaped it to nop. So it would trigger a substitution and put me in insert mode.

Temp fix: hard code my leader which is space. so put <Space>s as the body.

Aleod-m avatar Jul 04 '22 20:07 Aleod-m

Can't reproduce. I added in my init.vim:

let mapleader = "\<Space>"
nmap <Space> <Nop>

and bind <leader>s as hydra body, and everything works.

anuvyklack avatar Jul 18 '22 08:07 anuvyklack

Does vim.g.mapleader = " " and vim.g.mapleader = "<Space>" differ ? Because i have the former. I guess that could be it. I also use the nightly neovim:

nvim --version
NVIM v0.8.0-dev
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by nixbld

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "
/nix/store/g5102km6mb9imps22lr1l46l98d3awm8-neovim-unwrapped-master/share/nvim
"

Run :checkhealth for more info

Aleod-m avatar Jul 18 '22 22:07 Aleod-m