mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 17:03:39 +02:00
fix(trouble): show message if use hasnt updated with Lazy yet after enabling the extra
This commit is contained in:
parent
bb6aa98cbf
commit
9a2f773090
1 changed files with 5 additions and 0 deletions
|
@ -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 = {},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue