dotfiles/nvim/lua/kickstart/plugins/bufferline.lua
2024-10-04 00:40:48 +03:00

31 lines
813 B
Lua

-- bufferline
return {
'akinsho/bufferline.nvim',
version = '*',
dependencies = {
'nvim-tree/nvim-web-devicons',
},
opts = {
options = {
mode = "buffers",
themable = true,
color_icons = true,
offsets = {
{
filetype = "neo-tree",
text = "File Explorer",
text_align = "left",
separator = true,
}
},
},
},
config = function()
-- Keymaps for bufferline
vim.keymap.set('n', '<A-h>', '<cmd>BufferLineCyclePrev<CR>', { silent = true })
vim.keymap.set('n', '<A-l>', '<cmd>BufferLineCycleNext<CR>', { silent = true })
vim.keymap.set('n', '<A-k>', '<cmd>BufferLineCloseOthers<CR>', { silent = true })
end,
}