From 79b10b2f234b142d6a90a4eee0fab356f16efb40 Mon Sep 17 00:00:00 2001 From: jpridemore-allegion Date: Wed, 17 Jul 2024 23:19:05 -0600 Subject: [PATCH] fix(lualine): cleaner conditional --- lua/lazyvim/plugins/ui.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lua/lazyvim/plugins/ui.lua b/lua/lazyvim/plugins/ui.lua index c5224b22..6455658d 100644 --- a/lua/lazyvim/plugins/ui.lua +++ b/lua/lazyvim/plugins/ui.lua @@ -199,9 +199,11 @@ return { -- do not add trouble symbols if aerial is enabled -- And allow it to be overriden for some buffer types (see autocmds) - local trouble_lualine_enabled = vim.b.trouble_lualine == nil or vim.b.trouble_lualine - trouble_lualine_enabled = trouble_lualine_enabled and vim.g.trouble_lualine - if trouble_lualine_enabled and LazyVim.has("trouble.nvim") then + if + vim.g.trouble_luline_enabed ~= false + and vim.b.trouble_lualine_enabled ~= false + and LazyVim.has("trouble.nvim") + then local trouble = require("trouble") local symbols = trouble.statusline and trouble.statusline({