Beacon.nvim - see your cursor jump
Whenever cursor jumps some distance or moves between windows, it will flash so you can see where it is. This plugin is heavily inspired by emacs package beacon.
Note: for now this plugin only works in neovim v0.4+.
(gif is too slow, it is actually quite fast animation)
Add the following configuration to your
Or use your favorite plugin manager
let g:beacon_enable = 0
and beacon will be disabled, but you still can use
:Beacon command to highlight cursor. See commands.
Beacon is highlighted by
Beacon group, so you can change it like this:
highlight Beacon guibg=white ctermbg=15
guibg if you have
termguicolors enabled, otherwise use
Changing beacon size
let g:beacon_size = 40
When to show beacon
If you only want to see beacon when cursor changes windows, you can set
let g:beacon_show_jumps = 0
and it will ignore jumps inside buffer. By default shows all jumps.
You can change what beacon considers significant jump, by changing
let g:beacon_minimal_jump = 10
You can disable shrinking animation by setting
let g:beacon_shrink = 0
enabled by default
You can disable fading animation by setting
let g:beacon_fade = 0
enabled by default.
You can set
g:beacon_timeout to hide beacon early, by default it set to 500ms.
To ignore a buffer you can set list of regexes
g:beacon_ignore_buffers = [\w*git*\w]
There is 4 commands available.
:Beaconhighlight current position (even if plugin is disabled)
How it works
Whenever plugin detects some kind of a jump, it's showing floating window at the cursor position and using
winblend fades window out.