1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

update config for bufferline.nvim

Do not show buffer number and use a mapping to pick buffer instead.
This commit is contained in:
jdhao 2024-08-17 17:28:09 +02:00
parent 256c37a946
commit f9780c2dff

View File

@ -1,6 +1,6 @@
require("bufferline").setup {
options = {
numbers = "buffer_id",
numbers = "none",
close_command = "bdelete! %d",
right_mouse_command = nil,
left_mouse_command = "buffer %d",
@ -44,3 +44,7 @@ require("bufferline").setup {
sort_by = "id",
},
}
vim.keymap.set("n", "<space>bp", "<cmd>BufferLinePick<CR>", {
desc = "pick a buffer",
})