dotfiles/nvim/plugin/barbar.lua

21 lines
474 B
Lua
Raw Normal View History

2023-05-10 09:17:35 +00:00
local ok, barbar = pcall(require, 'barbar')
if not ok then return end;
barbar.setup {
icons = {
buffer_index = true,
filetype = {
enabled = true
}
}
}
local map = vim.api.nvim_set_keymap
local opts = { noremap = true, silent = true }
-- Navigating buffers
map('n', '<A-,>', '<Cmd>BufferPrevious<CR>', opts)
map('n', '<A-.>', '<Cmd>BufferNext<CR>', opts)
map('n', '<A-s>', '<Cmd>BufferPick<CR>', opts)
map('n', '<A-c>', '<Cmd>BufferClose<CR>', opts)