ironhouzi/starlite-nvim

github github
plugin neovim-0.5
star 19
stars
alert-circle 1
open issues
users 1
subscribers
git-branch 0
forks
CREATED

2021-08-20

UPDATED

2 months ago

packer

require('packer').startup(function()
  use 'ironhouzi/starlite-nvim'
end)

paq

require "paq" { 
  'ironhouzi/starlite-nvim'
}

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#.