haoran-mc / interestingwords.nvim

highlighting different words

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

forked from vim-interestingwords and rewrite with lua

example.png

  • introduction:
    1. The plugin highlights different words at the same time.
    2. 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:

    1. highlight with <leader>k and clear color with <leader>K
    2. navigate highlighted words with n and N
  • 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" },
        },
        ...
    }
}

About

highlighting different words

License:GNU General Public License v3.0


Languages

Language:Lua 100.0%