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

silent options doesn't work anymore

Open darkangel-ua opened this issue 3 years ago • 2 comments

After update I've discovered that silent doesn't work in heads and I see command appearing in the command like and from time to time lualine disappears from screen.

        heads = {
            { 'h' , ':BufferLineCyclePrev<cr>', { silent = true, desc = 'Prev buffer'} },
            { 'l' , ':BufferLineCycleNext<cr>', { silent = true, desc = 'Next buffer' } },
            { 'q', nil, { exit = true, nowait = true } },
        }

darkangel-ua avatar Jul 30 '22 08:07 darkangel-ua

I don't have much time to fix this issue now because it is rather tricky. As a temporary solution, you can use <cmd> instead of : like this:

{ 'h' , '<cmd>BufferLineCyclePrev<cr>', { desc = 'Prev buffer'} },

See :help <Cmd>

anuvyklack avatar Jul 31 '22 16:07 anuvyklack

Interesting :) That works for me. Thanks!

darkangel-ua avatar Jul 31 '22 17:07 darkangel-ua