From 6170db80d8be17c04e16c30b37db83c057505874 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Fri, 8 Sep 2023 21:00:42 +0300 Subject: [PATCH] enough for today --- dotfiles/neovim/lua/my/plugins/hydra.lua | 2 +- dotfiles/neovim/lua/my/plugins/venn.lua | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/dotfiles/neovim/lua/my/plugins/hydra.lua b/dotfiles/neovim/lua/my/plugins/hydra.lua index 61e849b..9e9b371 100644 --- a/dotfiles/neovim/lua/my/plugins/hydra.lua +++ b/dotfiles/neovim/lua/my/plugins/hydra.lua @@ -370,7 +370,7 @@ function M.config() config = { invoke_on_body = true, hint = { - border = "rounded", + border = "single", offset = -1, -- vertical offset (larger => higher up) }, }, diff --git a/dotfiles/neovim/lua/my/plugins/venn.lua b/dotfiles/neovim/lua/my/plugins/venn.lua index 9db9b9e..63b93ea 100644 --- a/dotfiles/neovim/lua/my/plugins/venn.lua +++ b/dotfiles/neovim/lua/my/plugins/venn.lua @@ -6,13 +6,26 @@ local M = { keys = { "V" }, } -local venn_hint = [[ +local venn_hint_old = [[ ^^^Arrow^^^ Select region with ^ ^ _K_ ^ ^ _f_: surround it with box _H_ ^ ^ _L_ ^ ^ _J_ ^ ^ __ ]] +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("", ": select region"), + H.concat_h(H.pad_right(H.highlight("f"), 5), ": surround with box"), + }, { justify = "left" }) + ), +}, 3).value + function M.config() local Hydra = require("hydra")