Skip to content

Latest commit

 

History

History
63 lines (35 loc) · 1.15 KB

README.md

File metadata and controls

63 lines (35 loc) · 1.15 KB

highlight-annotate.nvim

Highlight-annotate.nvim is a plugin for aiding reading and analyzing text files such as logs or program sources.

The highlights and annotations are not persistent and last only for the current editing session.

Install

packer.nvim:

use { 'ivyl/highlight-annotate.nvim', config = function()
  require'highlight-annotate'.setup({})
end }

Docs

:help highlight-annotate.txt

Highlight

Local to window.

:HA hl

Preview

:HA list

:HA del-hl

Annotate

Local to buffer.

:HA a

Preview

:HA del-a

Search Annotations

Requires telescope.nvim

local telescope = require 'telescope'
-- regular telescope setup goes here

telescope.load_extension('highlight-annotate')
vim.keymap.set('n', '<leader>fa', telescope.extensions["highlight-annotate"].annotations)

:Telescope highlight-annotate annotations or use the mapping.

Preview