Skip to content

Commit

Permalink
Update .config/nvim/lua/plugins/barbar.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyuga-Tsukui committed Oct 30, 2024
1 parent 8277011 commit 0f6bb92
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions dot_config/nvim/lua/plugins/barbar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,21 @@ return {
},
event = { "BufEnter" },
config = function()
require("barbar").setup({
sidebar_filetypes = {
-- Use the default values: {event = 'BufWinLeave', text = '', align = 'left'}
NvimTree = true,
-- Or, specify the text used for the offset:
undotree = {
text = "undotree",
align = "center", -- *optionally* specify an alignment (either 'left', 'center', or 'right')
},
-- Or, specify the event which the sidebar executes when leaving:
["neo-tree"] = { event = "BufWipeout" },
-- Or, specify all three
Outline = { event = "BufWinLeave", text = "symbols-outline", align = "right" },
},
})
vim.keymap.set("n", "<TAB>", "<Cmd>BufferPrevious<CR>", { noremap = true, silent = true })
vim.keymap.set("n", "<S-TAB>", "<Cmd>BufferNext<CR>", { noremap = true, silent = true })
end,
Expand Down

0 comments on commit 0f6bb92

Please sign in to comment.