mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
20 lines
474 B
Lua
20 lines
474 B
Lua
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)
|