From 0224c05c980cf0a72531024b4442c302c9130415 Mon Sep 17 00:00:00 2001 From: Yuan Chiu Date: Sat, 31 May 2025 15:28:13 +0800 Subject: [PATCH] fix nvim: neo-tree add title --- .../exact_lua/exact_plugins/exact_components/barbar.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dot_config/nvim/exact_lua/exact_plugins/exact_components/barbar.lua b/dot_config/nvim/exact_lua/exact_plugins/exact_components/barbar.lua index 35f1e7b..8174065 100644 --- a/dot_config/nvim/exact_lua/exact_plugins/exact_components/barbar.lua +++ b/dot_config/nvim/exact_lua/exact_plugins/exact_components/barbar.lua @@ -22,7 +22,9 @@ return { }, sidebar_filetypes = { ['neo-tree'] = { - event = 'BufWipeout' + event = 'BufWipeout', + text = ' Explorer', + align = 'left', -- event = 'BufWinEnter' }, undotree = { @@ -68,7 +70,7 @@ return { local buf = vim.api.nvim_win_get_buf(win) if vim.bo[buf].filetype == "neo-tree" then local width = vim.api.nvim_win_get_width(win) - require("barbar.api").set_offset(width, "") + require("barbar.api").set_offset(width, " Explorer") break end end