Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 2 months 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 (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-06-22T13:43:56.000Z (over 2 years ago)
- Last Synced: 2024-10-12T22:53:12.374Z (2 months ago)
- Topics: cursorword, neovim-plugin, vim-cursorword
- Language: Lua
- Homepage:
- Size: 12.7 KB
- Stars: 133
- Watchers: 3
- 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)
README
# nvim-cursorword
Part of [nvim-cursorline](https://github.com/yamatsum/nvim-cursorline).
![screenshot](https://user-images.githubusercontent.com/47070852/124384896-02b6aa80-dd06-11eb-8a44-dfd142acdada.gif)
## 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
```