From 0860db73ae6fd9a6f6347219d820bf026a6b8b91 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Sun, 27 Sep 2026 17:38:39 +0200 Subject: * MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automated-commit-by: dots Signed-off-by: Robert Günzler --- .config/nvim/lua/plugins/haunt.lua | 47 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .config/nvim/lua/plugins/haunt.lua (limited to '.config/nvim/lua/plugins/haunt.lua') diff --git a/.config/nvim/lua/plugins/haunt.lua b/.config/nvim/lua/plugins/haunt.lua new file mode 100644 index 0000000..aa24cec --- /dev/null +++ b/.config/nvim/lua/plugins/haunt.lua @@ -0,0 +1,47 @@ +return { + { + enabled = true, + 'https://github.com/TheNoeTrevino/haunt.nvim', + lazy = true, + opts = { + sign = '', + -- sign_hl = nil, + -- line_hl = nil, + -- virt_text_hl = nil, + data_dir = nil, + annotation_prefix = '  ', + -- virt_text_pos = 'eol', + virt_text_pos = 'above', + picker_keys = { + delete = { key = 'ctrl-x' }, + edit_annotation = { key = 'ctrl-e' }, + }, + }, + cmd = { + 'HauntAnnoate', + 'HauntDelete', + 'HauntList', + 'HauntNext', + 'HauntPrev', + 'HauntQfAll', + }, + keys = { + { '[h', 'HauntPrev', desc = 'haunt: prev annotation', silent = true }, + { ']h', 'HauntNext', desc = 'haunt: next annotation', silent = true }, + { 'h', '', desc = 'haunt' }, + { 'ha', 'HauntAnnotate', desc = 'haunt: annotate', silent = true }, + { 'ha', 'HauntAnnotate', desc = 'haunt: annotate', silent = true }, + { 'hd', 'HauntDelete', desc = 'haunt: delete', silent = true }, + { 'hl', 'HauntList', desc = 'haunt: list', silent = true }, + { 'hf', 'HauntQfAll', desc = 'haunt: quickfix', silent = true }, + { + 'ht', + function() + require('haunt.api').toggle_all_lines() + end, + desc = 'haunt: toggle all', + silent = true, + }, + }, + }, +} -- cgit 1.4.1