bufferline: setup

This commit is contained in:
2022-04-14 21:53:46 +08:00
parent 9f0dc38725
commit 0b60aaa96e
4 changed files with 22 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
local present, bufferline = pcall(require, 'bufferline')
if not present then
return
end
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({
offsets = {
{ filetype='NvimTree', text='File Explorer', text_align = 'center' },
}
})
+1
View File
@@ -58,6 +58,7 @@ return packer.startup(function(use)
cmd = 'Telescope',
requires = {{'nvim-lua/plenary.nvim'}}
}
use {'akinsho/bufferline.nvim', tag = "*", requires = 'kyazdani42/nvim-web-devicons'}
-- Themes
use {