fix(lualine): check that trouble is installed

This commit is contained in:
Folke Lemaitre 2024-07-07 08:47:57 +02:00
parent 4035768195
commit d108169e95
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

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