Skip to content

Commit

Permalink
fix(trouble): show message if use hasnt updated with Lazy yet after e…
Browse files Browse the repository at this point in the history
…nabling the extra
  • Loading branch information
folke committed Mar 28, 2024
1 parent bb6aa98 commit 9a2f773
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/lazyvim/plugins/extras/editor/trouble-v3.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {},
Expand Down

0 comments on commit 9a2f773

Please sign in to comment.