-
Notifications
You must be signed in to change notification settings - Fork 24
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 to draw boxes and arrows with venn.nvim
#23
Comments
You don't need to restore option in local hint = [[
Arrow^^^^^^ Select region with <C-v>
^ ^ _K_ ^ ^ _f_: surround it with box
_H_ ^ ^ _L_
^ ^ _J_ ^ ^ _<Esc>_
]]
Hydra({
name = 'Draw Diagram',
hint = hint,
config = {
color = 'pink',
invoke_on_body = true,
hint = {
position = 'bottom',
border = 'rounded'
},
on_enter = function()
vim.o.virtualedit = 'all'
end,
},
mode = 'n',
body = '<leader>d',
heads = {
{ 'H', '<C-v>h:VBox<CR>' },
{ 'J', '<C-v>j:VBox<CR>' },
{ 'K', '<C-v>k:VBox<CR>' },
{ 'L', '<C-v>l:VBox<CR>' },
{ 'f', ':VBox<CR>', { mode = 'v' }},
{ '<Esc>', nil, { exit = true } },
}
}) |
I missed it in the docs, thanks! |
Add to the wiki, thank you! |
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Draw boxes with venn.nvim.
The text was updated successfully, but these errors were encountered: