[MINOR] Removed empty filetype buffer from bufferline, for example, netrw
This commit is contained in:
parent
c0e23e444e
commit
d9fdd38947
1 changed files with 7 additions and 0 deletions
|
@ -65,6 +65,13 @@ require("bufferline").setup({
|
||||||
reveal = { 'close' }
|
reveal = { 'close' }
|
||||||
},
|
},
|
||||||
sort_by = 'insert_after_current',
|
sort_by = 'insert_after_current',
|
||||||
|
custom_filter = function(buf_number, buf_numbers)
|
||||||
|
-- filter out filetypes you don't want to see
|
||||||
|
print(vim.bo[buf_number].filetype)
|
||||||
|
if vim.bo[buf_number].filetype ~= "" then
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
end,
|
||||||
},
|
},
|
||||||
highlights = require("catppuccin.groups.integrations.bufferline").get()
|
highlights = require("catppuccin.groups.integrations.bufferline").get()
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue