return { { "TheNoeTrevino/haunt.nvim", -- default config: change to your liking, or remove it to use defaults ---@class HauntConfig opts = { sign = "󱙝", sign_hl = "DiagnosticInfo", virt_text_hl = "HauntAnnotation", annotation_prefix = " 󰆉 ", line_hl = nil, virt_text_pos = "eol", data_dir = nil, picker_keys = { delete = { key = "d", mode = { "n" } }, edit_annotation = { key = "a", mode = { "n" } }, }, }, keys = { -- anotation { "ha", function() require("haunt.api").annotate() end, desc = "Annotate", }, { "hd", function() require("haunt.api").delete() end, desc = "Delete bookmark", }, { "hD", function() require("haunt.api").clear_all() end, desc = "Delete all bookmarks", }, { "ht", function() require("haunt.api").toggle_annotation() end, desc = "Toggle annotation", }, { "hT", function() require("haunt.api").toggle_all_lines() end, desc = "Toggle all annotations", }, -- move { "hn", function() require("haunt.api").next() end, desc = "Next bookmark", }, { "hp", function() require("haunt.api").prev() end, desc = "Previous bookmark", }, -- picker { "hl", function() require("haunt.picker").show() end, desc = "Show Picker", }, -- quickfix { "hq", function() require("haunt.api").to_quickfix { current_buffer = true } end, desc = "Send hauntings to quickfix (buffer)", }, { "hQ", function() require("haunt.api").to_quickfix() end, desc = "Send Hauntings to Quickfix (all)", }, -- yank { "hy", function() require("haunt.api").yank_locations { current_buffer = true } end, desc = "Send Hauntings to Clipboard (buffer)", }, { "hY", function() require("haunt.api").yank_locations() end, desc = "Send Hauntings to Clipboard (all)", }, }, }, -- sidekick.nvim integration { "folke/sidekick.nvim", optional = true, opts = { cli = { prompts = { haunt_all = function() return require("haunt.sidekick").get_locations() end, haunt_buffer = function() return require("haunt.sidekick").get_locations { current_buffer = true } end, }, }, }, }, }