All Projects → DanilaMihailov → beacon.nvim

DanilaMihailov / beacon.nvim

Licence: other
Whenever cursor jumps some distance or moves between windows, it will flash so you can see where it is

Programming Languages

Vim Script
2826 projects

Projects that are alternatives of or similar to beacon.nvim

Vim Dadbod Completion
Database autocompletion powered by https://github.com/tpope/vim-dadbod
Stars: ✭ 163 (-24.88%)
Mutual labels:  vim-plugin, neovim-plugin
Indent Blankline.nvim
Indent guides for Neovim
Stars: ✭ 203 (-6.45%)
Mutual labels:  vim-plugin, neovim-plugin
Neotex
latex live preview - plugin for neovim and vim 8
Stars: ✭ 170 (-21.66%)
Mutual labels:  vim-plugin, neovim-plugin
Vem Tabline
A lightweight Vim/Neovim plugin to display buffers and tabs in the tabline
Stars: ✭ 129 (-40.55%)
Mutual labels:  vim-plugin, neovim-plugin
qf helper.nvim
A collection of improvements for the quickfix buffer
Stars: ✭ 70 (-67.74%)
Mutual labels:  vim-plugin, neovim-plugin
Ale
Check syntax in Vim asynchronously and fix files, with Language Server Protocol (LSP) support
Stars: ✭ 11,380 (+5144.24%)
Mutual labels:  vim-plugin, neovim-plugin
Visual Split.vim
Vim plugin to control splits with visual selections or text objects
Stars: ✭ 190 (-12.44%)
Mutual labels:  vim-plugin, neovim-plugin
Asyncrun.vim
🚀 Run Async Shell Commands in Vim 8.0 / NeoVim and Output to the Quickfix Window !!
Stars: ✭ 1,332 (+513.82%)
Mutual labels:  vim-plugin, neovim-plugin
Coc.nvim
Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
Stars: ✭ 18,268 (+8318.43%)
Mutual labels:  vim-plugin, neovim-plugin
Vim Ghost
Vim/Nvim client for GhostText - Edit browser text areas in Vim/Neovim
Stars: ✭ 245 (+12.9%)
Mutual labels:  vim-plugin, neovim-plugin
Vim Clap
👏 Modern performant fuzzy picker for Vim and NeoVim
Stars: ✭ 1,802 (+730.41%)
Mutual labels:  vim-plugin, neovim-plugin
stable-windows
Keeps vim windows stable on layout changes
Stars: ✭ 41 (-81.11%)
Mutual labels:  vim-plugin, neovim-plugin
Nvim Treesitter Context
Show code context
Stars: ✭ 113 (-47.93%)
Mutual labels:  vim-plugin, neovim-plugin
Targets.vim
Vim plugin that provides additional text objects
Stars: ✭ 2,114 (+874.19%)
Mutual labels:  vim-plugin, neovim-plugin
Neovim Fuzzy
Fuzzy file finding for neovim
Stars: ✭ 103 (-52.53%)
Mutual labels:  vim-plugin, neovim-plugin
Animate.vim
A Vim Window Animation Library
Stars: ✭ 173 (-20.28%)
Mutual labels:  vim-plugin, neovim-plugin
Fzf Mru.vim
Vim plugin that is using fzf.vim to display your most recently used files.
Stars: ✭ 79 (-63.59%)
Mutual labels:  vim-plugin, neovim-plugin
Todoist.nvim
A todoist extension for neovim
Stars: ✭ 84 (-61.29%)
Mutual labels:  vim-plugin, neovim-plugin
Vim Vsnip
Snippet plugin for vim/nvim that supports LSP/VSCode's snippet format.
Stars: ✭ 224 (+3.23%)
Mutual labels:  vim-plugin, neovim-plugin
vim-readme-viewer
📖 Viewing plugin's README easily like vim help
Stars: ✭ 26 (-88.02%)
Mutual labels:  vim-plugin, neovim-plugin

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: required versions neovim v0.4+ or vim v8.2+. Working on support for older versions.

example.gif

Installation

vim-plug

  1. Add the following configuration to your .vimrc.

     Plug 'danilamihailov/beacon.nvim'
    
  2. Install with :PlugInstall.

Or use your favorite plugin manager

Customization

Disable beacon

Just set

let g:beacon_enable = 0

and beacon will be disabled, but you still can use :Beacon command to highlight cursor. See commands.

Changing color

Beacon is highlighted by Beacon group, so you can change it like this:

highlight Beacon guibg=white ctermbg=15

use guibg if you have termguicolors enabled, otherwise use ctermbg.

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

Animation

You can disable shrinking animation by setting

let g:beacon_shrink = 0

enabled by default

You can disable fading animation by setting (neovim only)

let g:beacon_fade = 0

enabled by default.

You can set g:beacon_timeout to hide beacon early, by default it set to 500ms.

Ignoring buffers

To ignore a buffer you can set list of regexes

g:beacon_ignore_buffers = [\w*git*\w]

Ignoring filetypes

To ignore filetypes you can set list of filetypes

g:beacon_ignore_filetypes = ['fzf']

Commands

There is 4 commands available.

  • :Beacon highlight current position (even if plugin is disabled)
  • :BeaconToggle toggle g:beacon_enable variable
  • :BeaconOn enable Beacon
  • :BeaconOff disable Beacon

Tips

If you want cursor to be highlighted when you jump to searches with n/N regardless of distance, use this mappings

nmap n n:Beacon<cr>
nmap N N:Beacon<cr>
nmap * *:Beacon<cr>
nmap # #:Beacon<cr>

Hide cursor line on inactive windows

augroup MyCursorLineGroup
    autocmd!
    au WinEnter * setlocal cursorline
    au WinLeave * setlocal nocursorline
augroup end

Similar plugins

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].