Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hydra not working well with diagnosticprevious and diagnosticnext functions of plugin Coc #97

Open
mahaaaham opened this issue Oct 19, 2023 · 0 comments

Comments

@mahaaaham
Copy link

mahaaaham commented Oct 19, 2023

Hi,

I wrote this little hydra:

Hydra({
   color = pink,
   name = 'Coc diagnostic',
   mode = 'n',
   body = 'z',
   config = {
        hint = false,
    },
   heads = {
      { ',', ':call  CocActionAsync("diagnosticPrevious")<CR>'},
      { ';', ':call  CocActionAsync("diagnosticNext")<CR>'},
   }
})

In order to navigate between the diagnostics of the plugin Coc.
(the commands are actually the one used to define the (coc-diagnostic-prev) and (coc-diagnostic-next) command indicated in https://github.com/neoclide/coc.nvim . The aim is to jump from a diagnostic to another).

Interestingly, when I directly put the command on vim, it work perfectly. But If i try to use hydra, I need to push "enter" again in order for it to work, and this seems to only work once. To be honest, I don't really understand what is happening, but it is maybe linked to #87 ?

My informations about nvim :

NVIM v0.9.2
Build type: Release
LuaJIT 2.1.1694285958

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant