Skip to content

Expedient and simple text highlighting using built in Neovim commands: |*|, |g*|, |#|, |g#|. Written in Lua.

License

Notifications You must be signed in to change notification settings

ironhouzi/starlite-nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

starlite-nvim

Expedient and simple text highlighting using built in Neovim commands:

*, g*, #, g#. Written in Lua.

Successor to vim-stim written in VimL.

Introduction

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.

Prerequisites

  • Neovim 5.0

Setup

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>

star()

Performs plugin behavior for star.

g_star()

Performs plugin behavior for gstar.

hash()

Performs plugin behavior for #.

g_hash()

Performs plugin behavior for g#.

About

Expedient and simple text highlighting using built in Neovim commands: |*|, |g*|, |#|, |g#|. Written in Lua.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages