Update configuration

This commit is contained in:
Fraser Fewster 2025-10-01 22:01:58 +01:00 committed by Fraser Fewster
parent 3338d39206
commit aa0432684f
7 changed files with 143 additions and 8 deletions

View file

@ -0,0 +1,26 @@
return {
{
'romgrk/barbar.nvim',
dependencies = {
'lewis6991/gitsigns.nvim', -- OPTIONAL: for git status
'nvim-tree/nvim-web-devicons', -- OPTIONAL: for file icons
},
init = function()
local map = vim.api.nvim_set_keymap
local opts = { noremap = true, silent = true }
vim.g.barbar_auto_setup = false
map('n', '<Tab>', '<Cmd>BufferNext<CR>', opts)
map('n', '<S-Tab>', '<Cmd>BufferPrevious<CR>', opts)
map('n', '<leader>xx', '<Cmd>BufferClose<CR>', opts)
map('n', '<leader>xl', '<Cmd>BufferCloseBuffersRight<CR>', opts)
map('n', '<leader>xh', '<Cmd>BufferCloseBuffersLeft<CR>', opts)
end,
opts = {
-- lazy.nvim will automatically call setup for you. put your options here, anything missing will use the default:
animation = true,
-- insert_at_start = true,
-- …etc.
},
version = '^1.0.0', -- optional: only update when a new 1.x version is released
},
}