From 032e19a05fab0662fc41b0af97d2f84218cfb889 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1chym?= Date: Fri, 14 Mar 2025 16:15:28 +0100 Subject: [PATCH] Lazyloading bufferline and lualine on VeryLazy event --- lua/plugins/bufferline.lua | 8 ++++++-- lua/plugins/lualine.lua | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lua/plugins/bufferline.lua b/lua/plugins/bufferline.lua index d39829e..838b92c 100644 --- a/lua/plugins/bufferline.lua +++ b/lua/plugins/bufferline.lua @@ -2,6 +2,10 @@ return { "akinsho/bufferline.nvim", version = "*", dependencies = { "nvim-tree/nvim-web-devicons" }, - lazy = false, - opts = {}, + event = "VeryLazy", + opts = { + options = { + always_show_bufferline = false, + } + }, } diff --git a/lua/plugins/lualine.lua b/lua/plugins/lualine.lua index 267b6ee..f526a12 100644 --- a/lua/plugins/lualine.lua +++ b/lua/plugins/lualine.lua @@ -1,7 +1,7 @@ return { "nvim-lualine/lualine.nvim", dependencies = { "nvim-tree/nvim-web-devicons" }, - lazy = false, + event = "VeryLazy", opts = { options = { section_separators = "", component_separators = "" }, extensions = { "fzf", "lazy", "man", "mason", "nvim-tree" },