mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[nvim] Update the barbar config
This commit is contained in:
parent
cdccc1f0d3
commit
56849789a0
2 changed files with 20 additions and 9 deletions
20
nvim/plugin/barbar.lua
Normal file
20
nvim/plugin/barbar.lua
Normal file
|
@ -0,0 +1,20 @@
|
|||
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)
|
|
@ -1,9 +0,0 @@
|
|||
let bufferline = get(g:, 'bufferline', {})
|
||||
let bufferline.icons = 'both'
|
||||
|
||||
" Navigating buffers
|
||||
nnoremap <silent> <A-,> :BufferPrevious<CR>
|
||||
nnoremap <silent> <A-.> :BufferNext<CR>
|
||||
nnoremap <silent> <A-s> :BufferPick<CR>
|
||||
|
||||
nnoremap <silent> <A-c> :BufferClose<CR>
|
Loading…
Reference in a new issue