https://github.com/xiyaowong/nvim-cursorword
highlight the word under the cursor.
https://github.com/xiyaowong/nvim-cursorword
cursorword neovim-plugin vim-cursorword
Last synced: about 1 month ago
JSON representation
highlight the word under the cursor.
- Host: GitHub
- URL: https://github.com/xiyaowong/nvim-cursorword
- Owner: xiyaowong
- Created: 2021-06-28T05:22:31.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-22T13:43:56.000Z (almost 3 years ago)
- Last Synced: 2025-03-14T22:35:52.338Z (about 1 month ago)
- Topics: cursorword, neovim-plugin, vim-cursorword
- Language: Lua
- Homepage:
- Size: 12.7 KB
- Stars: 138
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-neovim - xiyaowong/nvim-cursorword - Part of nvim-cursorline. Highlight the word under the cursor. (Bars and Lines / Cursorline)
- awesome-neovim-sorted - xiyaowong/nvim-cursorword
- awesome-neovim-sorted - xiyaowong/nvim-cursorword
README
# nvim-cursorword
Part of [nvim-cursorline](https://github.com/yamatsum/nvim-cursorline).

## feature
Only highlight the word under the cursor.
## Options
```vim
" disable highlighting for some filetypes
let g:cursorword_disable_filetypes = []" disable highlighting at startup.
" run :CursorWordEnable or :CursorWordToggle to activate highlighting
let g:cursorword_disable_at_startup = v:true" min width of word
let g:cursorword_min_width = 3" max width of word
let g:cursorword_max_width = 50
```## Commands
```vimscript
:CursorWordDisable
:CursorWordEnable
:CursorWordToggle
```## highlight
by default
```viml
hi default CursorWord cterm=underline gui=underline
```