fix nvim: neo-tree add title

This commit is contained in:
Yuan Chiu 2025-05-31 15:28:13 +08:00
parent c355eafedc
commit 0224c05c98
Signed by: yuan
GPG Key ID: 50FBE4156404B98D

View File

@ -22,7 +22,9 @@ return {
}, },
sidebar_filetypes = { sidebar_filetypes = {
['neo-tree'] = { ['neo-tree'] = {
event = 'BufWipeout' event = 'BufWipeout',
text = ' Explorer',
align = 'left',
-- event = 'BufWinEnter' -- event = 'BufWinEnter'
}, },
undotree = { undotree = {
@ -68,7 +70,7 @@ return {
local buf = vim.api.nvim_win_get_buf(win) local buf = vim.api.nvim_win_get_buf(win)
if vim.bo[buf].filetype == "neo-tree" then if vim.bo[buf].filetype == "neo-tree" then
local width = vim.api.nvim_win_get_width(win) local width = vim.api.nvim_win_get_width(win)
require("barbar.api").set_offset(width, "") require("barbar.api").set_offset(width, " Explorer")
break break
end end
end end