tversteeg/registers.nvim

github github
registers plugin
star 280
stars
alert-circle 3
open issues
users 4
subscribers
git-branch 12
forks
CREATED

2021-02-11

UPDATED

5 days ago

packer

require('packer').startup(function()
  use 'tversteeg/registers.nvim'
end)

paq

require "paq" { 
  'tversteeg/registers.nvim'
}

registers.nvim

Show register content when you try to access it in NeoVim. Written in Lua.

Requires NeoVim 0.4.4+.

Features

  • No configuration required, automatically maps to " and CtrlR
  • Non-obtrusive, won't influence you're workflow
  • Minimal interface, no visual noise

Use

The popup window showing the registers and their values can be opened in one of the following ways:

  • Call :Registers
  • Press " in normal or visual mode

normal

  • Press CtrlR in insert mode

insert

Empty registers are not shown by default.

Use the Up and Down or CtrlP and CtrlN or CtrlJ and CtrlK keys to select the register you want to use and press Enter to apply it, or type the register you want to apply, which is one of the following:

" 0-9 a-z : . % # = * + _ /

Install

Packer

use "tversteeg/registers.nvim"

Paq

paq "tversteeg/registers.nvim"

Plug

Plug 'tversteeg/registers.nvim', { 'branch': 'main' }

Dein

call dein#add('tversteeg/registers.nvim')

Setup

let g:registers_return_symbol = "\n" "'โŽ' by default
let g:registers_tab_symbol = "\t" "'ยท' by default
let g:registers_space_symbol = "." "' ' by default
let g:registers_delay = 500 "0 by default, milliseconds to wait before opening the popup window
let g:registers_register_key_sleep = 1 "0 by default, seconds to wait before closing the window when a register key is pressed
let g:registers_show_empty_registers = 0 "1 by default, an additional line with the registers without content
let g:registers_trim_whitespace = 0 "1 by default, don't show whitespace at the begin and end of the registers
let g:registers_hide_only_whitespace = 1 "0 by default, don't show registers filled exclusively with whitespace
let g:registers_window_border = "single" "'none' by default, can be 'none', 'single','double', 'rounded', 'solid', or 'shadow' (requires Neovim 0.5.0+)
let g:registers_window_min_height = 10 "3 by default, minimum height of the window when there is the cursor at the bottom
let g:registers_window_max_width = 20 "100 by default, maximum width of the window