feat(lualine): allow for trouble_lualine to be overriden on buffer

This commit is contained in:
jpridemore-allegion 2024-07-17 23:01:52 -06:00
parent d6561fd27c
commit 0cfa49f4b4

View file

@ -198,7 +198,10 @@ return {
}
-- do not add trouble symbols if aerial is enabled
if vim.g.trouble_lualine and LazyVim.has("trouble.nvim") then
-- 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
local trouble = require("trouble")
local symbols = trouble.statusline
and trouble.statusline({