fix(bufferline): prevent tabline pop-(in/out)

bufferline.nvim updates the showtabline option in its `setup()`, so if
showtabline is set to a conflicting value prior to loading bufferline,
the user will see it flash in/out as the UI loads. Change the event that
loads the plugin from `VeryLazy` to `UIEnter` to avoid this
This commit is contained in:
Bao Trinh 2024-05-09 16:48:24 -05:00
parent 530e94a9fa
commit 116354a7c5
No known key found for this signature in database
GPG key ID: 66B50C2AD65984B2

View file

@ -56,7 +56,7 @@ return {
-- tabs, which include filetype icons and close buttons. -- tabs, which include filetype icons and close buttons.
{ {
"akinsho/bufferline.nvim", "akinsho/bufferline.nvim",
event = "VeryLazy", event = "UIEnter",
keys = { keys = {
{ "<leader>bp", "<Cmd>BufferLineTogglePin<CR>", desc = "Toggle Pin" }, { "<leader>bp", "<Cmd>BufferLineTogglePin<CR>", desc = "Toggle Pin" },
{ "<leader>bP", "<Cmd>BufferLineGroupClose ungrouped<CR>", desc = "Delete Non-Pinned Buffers" }, { "<leader>bP", "<Cmd>BufferLineGroupClose ungrouped<CR>", desc = "Delete Non-Pinned Buffers" },