Skip to content

Commit

Permalink
feat: add vim-highlighter (#233)
Browse files Browse the repository at this point in the history
* feat: add vim-highlighter
  • Loading branch information
Hugo-CASTELL authored and Uzaaft committed Jun 11, 2023
1 parent 6e0eeec commit 845244c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lua/astrocommunity/color/vim-highlighter/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Vim Highlighter

A Neovim plugin which extends Vim's highlighting capabilities with additional features such as jump to highlights, saving and loading, finding patterns, and customizing colors.
It can be a useful tool when analyzing code, reviewing and summaries.

**Repository:** https://github.com/azabiong/vim-highlighter

Post-scriptum: access commands descriptions by visual selecting text and pressing 'f'

16 changes: 16 additions & 0 deletions lua/astrocommunity/color/vim-highlighter/vim-highlighter.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
return {
"azabiong/vim-highlighter",
lazy = false, -- Not Lazy by default
keys = {
-- These are basing keymaps to guide new users
{ "f<Enter>", desc = "Highlight" },
{ "f<BS>", desc = "Remove Highlight" },
{ "f<C-L>", desc = "Clear Highlight" },
{ "f<Tab>", desc = "Find Highlight (similar to Telescope grep)" },
-- They are derivated from the default keymaps, see README.md to github repo for documentation
{ "nn", "<cmd>Hi><CR>", desc = "Next Recently Set Highlight" },
{ "ng", "<cmd>Hi<<CR>", desc = "Previous Recently Set Highlight" },
{ "n[", "<cmd>Hi{<CR>", desc = "Next Nearest Highlight" },
{ "n]", "<cmd>Hi}<CR>", desc = "Previous Nearest Highlight" },
},
}

0 comments on commit 845244c

Please sign in to comment.