Skip to content

iamyoki/buffer-reopen.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

⌨️ Buffer Reopen for Nvim

Buffer Reopen is application for Nvim that allows you to reopen closed buffers with ease.

image

✨ Features

  • Reopen closed buffers with keybindings or command.

📦 Installation

Using Lazyvim

{
  'iamyoki/buffer-reopen.nvim',
  opts = {}
}

Using Plug

Plug 'iamyoki/buffer-reopen.nvim'

Then run :PlugInstall or :lua require('plug').install('buffer-reopen.nvim') to install the plugin.

🚀 Usage

Default Keybindings

  • <leader>bt - Reopen.
  • <C-S-t> - Reopen.

Commands

  • :BufferHistory reopen - Reopen.
  • :BufferHistory show_closed - Show closed buffers.

Custom Keybindings

You can disable the default keybindings and define your own keybindings for the plugin.

In Lazyvim for example:

{
  'iamyoki/buffer-reopen.nvim',
  keys = {
    -- disable the default keybindings
    {'<leader>bt', mode={'n'}, false},
    {'<C-S-t>', mode={'n'}, false},
  }
}
-- define your own keybindings
vim.keymap.set('n', '<leader>br', ':BufferHistory reopen<CR>', {silent = true})

About

Reopen buffer ⌨️ Ctrl+Shift+T or <leader>bt

Topics

Resources

License

Stars

Watchers

Forks

Languages