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,6 +1,7 @@
local Config = require("lazyvim.config") local Config = require("lazyvim.config")
for _, other in ipairs({ "aerial", "outline" }) do if vim.tbl_contains(Config.json.data.extras, "lazyvim.plugins.extras.editor.trouble-v3") then
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
other = other:gsub("^%l", string.upper) other = other:gsub("^%l", string.upper)
@ -10,6 +11,7 @@ for _, other in ipairs({ "aerial", "outline" }) do
"Please disable it in your config.", "Please disable it in your config.",
}) })
end end
end
end end
return { return {