forked from vim-interestingwords and rewrite with lua
- introduction:
- The plugin highlights different words at the same time.
- The plugin also enables navigate through the highlighted words in the buffer.
- requirements: Neovim latest stable version or nightly.
- installtion(lazy.nvim):
use { 'haoran-mc/interestingwords.nvim' }`
-
usage:
- highlight with
<leader>k
and clear color with<leader>K
- navigate highlighted words with
n
andN
- highlight with
-
configuration
require("interestingwords").setup {
colors = { '#A4E57E', '#8CCBEA', '#FFDB72', '#ff0000', '#FFB3FF', '#aeee00' },
color_key = "<leader>k",
cancel_color_key = "<leader>K",
}
- support lualine config:
require('lualine').setup{
lualine_x = {
...
{
require("interestingwords").lualine_get,
cond = require("interestingwords").lualine_has,
color = { fg = "#ff9e64" },
},
...
}
}