mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 08:53:33 +02:00
fix(trouble_v3): show error only when trouble_v3
is enabled (#2989)
This commit is contained in:
parent
79fed97f23
commit
ceb4855b43
1 changed files with 11 additions and 9 deletions
|
@ -1,6 +1,7 @@
|
|||
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
|
||||
if vim.tbl_contains(Config.json.data.extras, extra) then
|
||||
other = other:gsub("^%l", string.upper)
|
||||
|
@ -10,6 +11,7 @@ for _, other in ipairs({ "aerial", "outline" }) do
|
|||
"Please disable it in your config.",
|
||||
})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue