Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add vim-highlighter #233

Merged
merged 4 commits into from
May 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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" },
},
}