-
Notifications
You must be signed in to change notification settings - Fork 23
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
Silent option doesn't work #85
Comments
I stumbled across the same problem and I think I found a solution: heads = {
{ 'H', '<C-v>h<ESC><CMD>VBox<CR>' },
{ 'J', '<C-v>j<ESC><CMD>VBox<CR>' },
{ 'K', '<C-v>k<ESC><CMD>VBox<CR>' },
{ 'L', '<C-v>l<ESC><CMD>VBox<CR>' },
} . Hydra({
name = "Draw Diagram",
hint = hint,
config = {
color = "pink",
invoke_on_body = true,
hint = {
border = "rounded",
},
on_enter = function()
vim.o.virtualedit = "all"
end,
},
mode = "n",
body = "<leader>hd",
heads = {
{ "H", "<C-v>h<ESC><CMD>VBox<CR>" },
{ "J", "<C-v>j<ESC><CMD>VBox<CR>" },
{ "K", "<C-v>k<ESC><CMD>VBox<CR>" },
{ "L", "<C-v>l<ESC><CMD>VBox<CR>" },
{ "n", "<ESC><CMD>VBoxO<CR>", { mode = "v" } },
{ "b", "<ESC><CMD>VBoxHO<CR>", { mode = "v" } },
{ "d", "<ESC><CMD>VBoxDO<CR>", { mode = "v" } },
{ "f", "<ESC><CMD>VFill<CR>", { mode = "v" } },
{ "<Esc>", nil, { exit = true } },
},
})
|
@mdietrich16 mamy thanks for posting your solution 💯 |
Hi, thank you for this great plugin.
I notice that the
silent
option passed to hydra head is not working.I found #33 but I am not sure if it can be applied to my use-case.
My main purpose of using hydra is to draw ascii diagrams using https://github.com/jbyuki/venn.nvim
So the mappings that I have are like:
I my configuration the command line window is displayed in the center of the screen so the inability to set these as
silent
makes the experience unpleasant.I know that you mentioned that it is a tricky problem to solve, but maybe there is another workaround that can be applied in that case?
Also could you provide some explanation what is why it is tricky to have the
silent
working.If you don't have time to fix it, maybe I will be able to help with some guidance.
The text was updated successfully, but these errors were encountered: