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).
Using lazy.nvim
:
{
"neolooong/hereeyeam.nvim",
opts = {},
}
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()