Expedient and simple text highlighting using built in Neovim commands:
*, g*, #, g#. Written in Lua.
Successor to vim-stim written in VimL.
This plugin changes the behavior for normal mode commands
star
and
#
along with their counterparts
gstar
and
g#
.
When executing any of these commands for a new cursor word, they will only highlight the cursor word without jumping to the next occurrence. The original behavior of these commands jump to the next occurrence every time. Only after repeating the starlite command will the cursor jump to the next occurrence.
While there are many excellent plugins for text highlighting, this plugin aims for simplicity that should cover most of your highlighting needs.
- Neovim 5.0
The plugin exposes four functions which can be manually mapped:
nnoremap <silent> * :lua require'starlite'.star()<cr>
nnoremap <silent> g* :lua require'starlite'.g_star()<cr>
nnoremap <silent> # :lua require'starlite'.hash()<cr>
nnoremap <silent> g# :lua require'starlite'.g_hash()<cr>
Performs plugin behavior for
star
.
Performs plugin behavior for
gstar
.
Performs plugin behavior for
#
.
Performs plugin behavior for
g#
.