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
- Host: GitHub
- URL: https://github.com/winter233/neomark.nvim
- Owner: winter233
- License: apache-2.0
- Created: 2025-02-03T20:47:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-02T02:22:11.000Z (over 1 year ago)
- Last Synced: 2025-03-02T03:23:25.974Z (over 1 year ago)
- Topics: neovim, neovim-plugin
- Language: Lua
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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