return{'akinsho/bufferline.nvim',dependencies={'nvim-tree/nvim-web-devicons',"famiu/bufdelete.nvim",},enabled=true,event="BufRead",config=function()localbufferline=require("bufferline")require("bufferline").setup({options={custom_filter=function(buf_number,buf_numbers)--如果是defx则隐藏localfinded,_=string.find(vim.bo[buf_number].filetype,"defx")iffinded~=nilthenreturnfalseend-- filter out filetypes you don't want to see-- if vim.bo[buf_number].filetype ~= "<i-dont-want-to-see-this>" then-- return true-- end-- filter out by buffer name-- if vim.fn.bufname(buf_number) ~= "<buffer-name-I-dont-want>" then-- return true-- end-- filter out based on arbitrary rules-- e.g. filter out vim wiki buffer from tabline in your work repo-- if vim.fn.getcwd() == "<work-repo>" and vim.bo[buf_number].filetype ~= "wiki" then-- return true-- end-- filter out by it's index number in list (don't show first buffer)-- if buf_numbers[1] ~= buf_number then-- return false-- end-- do not show when total buffer number is 1if#(buf_numbers)<2thenreturnfalseendreturntrueend,})end,}