fix(trouble): show message if use hasnt updated with Lazy yet after enabling the extra

This commit is contained in:
Folke Lemaitre
2024-03-28 22:48:09 +01:00
parent bb6aa98cbf
commit 9a2f773090

View File

@ -31,6 +31,11 @@ return {
optional = true,
opts = function(_, opts)
local trouble = require("trouble")
if not trouble.statusline then
LazyVim.error("You have enabled the **trouble-v3** extra,\nbut still need to update it with `:Lazy`")
return
end
local symbols = trouble.statusline({
mode = "lsp_document_symbols",
groups = {},