Navigate buffers in neovim like in tmux with numbers.
Best served with a bufferline plugin like bufferline
Navigate to buffer 1 with <LeaderKeyYouDefine>1
, navigate to buffer 2 with <LeaderKeyYouDefine>2
, etc ...
This plugin support mapping up to <LeaderKeyYouDefine>9
.
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.
paq{'winston0410/commented.nvim'}
Plug 'winston0410/commented.nvim'
After installtion, call setup()
to start using this plugin.
require("buf-num-nav").setup()
This is the default configuration:
local opts = {
leader = "<c-g>",
supported_modes = { "n", "v" }
}