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

This commit is contained in:
Iordanis Petkakis 2024-04-15 14:24:33 +03:00
parent bb36f71b77
commit c2d6c56eb2

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 {
{ {