local M = {} local hint = [[ Arrow^^^^^^ Select region with ^ ^ _K_ ^ ^ _f_: surround it with box _H_ ^ ^ _L_ ^ ^ _J_ ^ ^ __ ]] function M.setup() local Hydra = require('hydra') 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 = 'v', heads = { { 'H', 'h:VBox' }, { 'J', 'j:VBox' }, { 'K', 'k:VBox' }, { 'L', 'l:VBox' }, { 'f', ':VBox', { mode = 'v' } }, { '', nil, { exit = true } }, } }) end return M