1
Fork 0

enough for today

This commit is contained in:
Matei Adriel 2023-09-08 21:00:42 +03:00
parent 8a54d25b3b
commit 6170db80d8
No known key found for this signature in database
2 changed files with 15 additions and 2 deletions

View file

@ -370,7 +370,7 @@ function M.config()
config = { config = {
invoke_on_body = true, invoke_on_body = true,
hint = { hint = {
border = "rounded", border = "single",
offset = -1, -- vertical offset (larger => higher up) offset = -1, -- vertical offset (larger => higher up)
}, },
}, },

View file

@ -6,13 +6,26 @@ local M = {
keys = { "<leader>V" }, keys = { "<leader>V" },
} }
local venn_hint = [[ local venn_hint_old = [[
^^^Arrow^^^ Select region with <C-v> ^^^Arrow^^^ Select region with <C-v>
^ ^ _K_ ^ ^ _f_: surround it with box ^ ^ _K_ ^ ^ _f_: surround it with box
_H_ ^ ^ _L_ _H_ ^ ^ _L_
^ ^ _J_ ^ ^ _<Esc>_ ^ ^ _J_ ^ ^ _<Esc>_
]] ]]
local H = require("my.plugins.hydra").hint
local venn_hint = H.concat_many_h({
H.add_title("Arrow", H.directional("H", "J", "K", "L", 3)),
H.add_title(
"Actions",
H.concat_many_w({
H.concat_h("<C-v>", ": select region"),
H.concat_h(H.pad_right(H.highlight("f"), 5), ": surround with box"),
}, { justify = "left" })
),
}, 3).value
function M.config() function M.config()
local Hydra = require("hydra") local Hydra = require("hydra")