Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A plugin for neovim that highlights cursor words and lines

License

Notifications You must be signed in to change notification settings

noelevans/nvim-cursorline

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nvim-cursorline

Highlight words and lines on the cursor for Neovim

  • Underlines the word under the cursor.
cursorword.mp4
  • Show / hide cursorline in connection with cursor moving.
cursorline.mp4

Installation

Install with your favorite plugin manager.

Default settings

require('nvim-cursorline').setup {
  cursorline = {
    enable = true,
    timeout = 1000,
    number = false,
  },
  cursorword = {
    enable = true,
    min_length = 3,
    hl = { underline = true },
    insert_highlighting = true,
  }
}

Options for block highlighting

require('nvim-cursorline').setup {
  cursorline = {
    enable = false,
  },
  cursorword = {
    enable = true,
    min_length = 1,
    hl = {
      underline = false,
      fg = "#c0caf5",
      bg = "#565f89",
      sp = nil,
      blend = 0,
      bold = false,
      standout = false,
      underline = false,
      undercurl = false,
      underdouble = false,
      underdotted = false,
      underdashed = false,
      strikethrough = false,
      italic = false,
      reverse = false,
      nocombine = false,
    },
  }
}

Most of the cursorword options are shown above. See a complete list of properties that can be set for val in the Neovim documentation: https://neovim.io/doc/user/api.html#nvim_set_hl().

Acknowledgments

Thanks goes to these people/projects for inspiration:

License

This software is released under the MIT License, see LICENSE.

About

A plugin for neovim that highlights cursor words and lines

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%