8000 GitHub - neolooong/hereeyeam.nvim
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

neolooong/hereeyeam.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

hereeyeam.nvim

Highlight the current line whenever the cursor moves across multiple lines. Eyes can always quickly and easily focus on the cursor.

2024-03-12.10.16.30.mov

Note: This plugin only tested on nightly build (neovim 0.10).

Installation

Using lazy.nvim:

{
  "neolooong/hereeyeam.nvim",
  opts = {},
}

Usage

This plugin provide the following options and default value:

require('hereeyeam').setup(
  {
    -- whether enable the highlight effect
    enable = true,
    -- the minimal lines acrossed, show highlight effect
    min_jump = 10,
    -- initial width (not include the cursor
    size = 80,
    -- how often to recalcute the width and winblend
    interval_ms = 15,
    -- how long the effect took
    total_ms = 350,
    -- the start value of blend value increased
    base_blend = 50,
    -- the end valud of blend value
    end_blend = 80,
    -- Custom the color of the highlight effect
    highlight = { link = "Normal" },
    -- ignore on specific buftypes
    ignore_buftype = {},
    -- ignore on specific filetypes
    ignore_filetype = {},
  }
)

To highlight on current line:

require('hereeyeam').show()

To enable/disable the highlight effect:

require('hereeyeam').toggle()
require('hereeyeam').enable()
require('hereeyeam').disable()

Similar plugin

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0