fix(trouble_v3): show error only when trouble_v3 is enabled (#2989)

This commit is contained in:
Iordanis Petkakis 2024-04-22 10:48:05 +03:00 committed by GitHub
parent 79fed97f23
commit ceb4855b43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,6 @@
local Config = require("lazyvim.config") local Config = require("lazyvim.config")
if vim.tbl_contains(Config.json.data.extras, "lazyvim.plugins.extras.editor.trouble-v3") then
for _, other in ipairs({ "aerial", "outline" }) do for _, other in ipairs({ "aerial", "outline" }) do
local extra = "lazyvim.plugins.extras.editor." .. other local extra = "lazyvim.plugins.extras.editor." .. other
if vim.tbl_contains(Config.json.data.extras, extra) then if vim.tbl_contains(Config.json.data.extras, extra) then
@ -11,6 +12,7 @@ for _, other in ipairs({ "aerial", "outline" }) do
}) })
end end
end end
end
return { return {
{ {