From 116354a7c50e4fd47abba21c71900ca184d4f4e1 Mon Sep 17 00:00:00 2001 From: Bao Trinh Date: Thu, 9 May 2024 16:48:24 -0500 Subject: [PATCH] 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 --- lua/lazyvim/plugins/ui.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazyvim/plugins/ui.lua b/lua/lazyvim/plugins/ui.lua index 47fb4280..77292149 100644 --- a/lua/lazyvim/plugins/ui.lua +++ b/lua/lazyvim/plugins/ui.lua @@ -56,7 +56,7 @@ return { -- tabs, which include filetype icons and close buttons. { "akinsho/bufferline.nvim", - event = "VeryLazy", + event = "UIEnter", keys = { { "bp", "BufferLineTogglePin", desc = "Toggle Pin" }, { "bP", "BufferLineGroupClose ungrouped", desc = "Delete Non-Pinned Buffers" },