From 0f6bb92e3f7c336afffb4630e5a5d7a4b792719f Mon Sep 17 00:00:00 2001 From: Hyuga Tsukui Date: Thu, 31 Oct 2024 00:28:21 +0900 Subject: [PATCH] Update .config/nvim/lua/plugins/barbar.lua --- dot_config/nvim/lua/plugins/barbar.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/dot_config/nvim/lua/plugins/barbar.lua b/dot_config/nvim/lua/plugins/barbar.lua index a7698ab..de27241 100644 --- a/dot_config/nvim/lua/plugins/barbar.lua +++ b/dot_config/nvim/lua/plugins/barbar.lua @@ -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", "", "BufferPrevious", { noremap = true, silent = true }) vim.keymap.set("n", "", "BufferNext", { noremap = true, silent = true }) end,