Files
neovim_conf/lua/configs/plugins/bufferline.lua
T
2022-09-01 17:04:35 +08:00

19 lines
468 B
Lua

local bufferline = require('bufferline')
local opts = {
noremap = true,
silent = true
}
vim.api.nvim_set_keymap('n', 'gb', ':BufferLinePick<CR>', opts)
vim.api.nvim_set_keymap('n', '<S-l>', ':BufferLineCycleNext<CR>', opts)
vim.api.nvim_set_keymap('n', '<S-h>', ':BufferLineCyclePrev<CR>', opts)
bufferline.setup({
options = {
offsets = {
{ filetype = 'NvimTree', text = 'File Explorer', text_align = 'center' },
},
}
})