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:
parent
256c37a946
commit
f9780c2dff
@ -1,6 +1,6 @@
|
|||||||
require("bufferline").setup {
|
require("bufferline").setup {
|
||||||
options = {
|
options = {
|
||||||
numbers = "buffer_id",
|
numbers = "none",
|
||||||
close_command = "bdelete! %d",
|
close_command = "bdelete! %d",
|
||||||
right_mouse_command = nil,
|
right_mouse_command = nil,
|
||||||
left_mouse_command = "buffer %d",
|
left_mouse_command = "buffer %d",
|
||||||
@ -44,3 +44,7 @@ require("bufferline").setup {
|
|||||||
sort_by = "id",
|
sort_by = "id",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<space>bp", "<cmd>BufferLinePick<CR>", {
|
||||||
|
desc = "pick a buffer",
|
||||||
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user