An open API service indexing awesome lists of open source software.

https://github.com/winter233/neomark.nvim

lua version of vim-mark
https://github.com/winter233/neomark.nvim

neovim neovim-plugin

Last synced: 17 days ago
JSON representation

lua version of vim-mark

Awesome Lists containing this project

README

          

# Neomark

**Neomark** is a lua plugin for Neovim >= 0.8.0 to highlight several cursor word with different colors and navigate between them.

## Features

- highlight as many keywords as you want, defualt 8.
- jump to prev/next marked keyword.

## Requirements

- Neovim >= 0.8.0

## 📦 Installation

Install the plugin with your preferred package manager:

### [lazy.nvim](https://github.com/folke/lazy.nvim)

```lua
{
"winter233/neomark.nvim",
opts = {
-- your configuration comes here
-- or leave it empty to use the default settings:
-- colors = { "#06989a", "#A4E57E", "#FFDB72", "#FF7272", "#FFB3FF", "#9999FF", "#729FCF", "#10B981" },
}
keys = {
-- your key maps
-- { "", "mn" , remap = true },
-- { "", "mp", remap = true},
-- { "", "m]" , remap = true},
-- { "", "m[", remap = true},
-- { "mm", function() require("neomark").toggle() end, desc = "Mark/Unmark word under cursor"},
-- { "mc", function() require("neomark").clear() end, desc = "Unmark all words"},
-- { "mp", function() require("neomark").prev({ recursive = true }) end, desc = "jump to prev marked word"},
-- { "mn", function() require("neomark").next({ recursive = true }) end, desc = "jump to next marked word"},
-- { "m[", function() require("neomark").prev({ recursive = true, any = true }) end, desc = "jump to prev any marked word"},
-- { "m]", function() require("neomark").next({ recursive = true, any = true }) end, desc = "jump to next any marked word"},
}
}
```

## Credits
- this project includes code from [todo-comments](https://github.com/folke/todo-comments.nvim)
- [inkarkat/vim-mark](https://github.com/inkarkat/vim-mark) for inspiration