Skip to content

Navigate buffers in neovim like in tmux with numbers.

Notifications You must be signed in to change notification settings

winston0410/buf-num-nav.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

buf-num-nav.nvim

Navigate buffers in neovim like in tmux with numbers.

Best served with a bufferline plugin like bufferline

Usage

Navigate to buffer 1 with <LeaderKeyYouDefine>1, navigate to buffer 2 with <LeaderKeyYouDefine>2, etc ...

This plugin support mapping up to <LeaderKeyYouDefine>9.

Use :bwipeout instead of :bdelete for removing buffer

For this plugin to function properly, you need to both unlist and delete the buffer. Therefore you need to use :bwipeout instead of :bdelete in your keybindings for deleting buffer.

Installation

Paq.nvim

paq{'winston0410/commented.nvim'}

vim-plug

Plug 'winston0410/commented.nvim'

After installtion, call setup() to start using this plugin.

require("buf-num-nav").setup()

Configuration

This is the default configuration:

local opts = {
	leader = "<c-g>",
    supported_modes = { "n", "v" }
}

About

Navigate buffers in neovim like in tmux with numbers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages