bufferline: setup
This commit is contained in:
@@ -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' },
|
||||
}
|
||||
})
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user