review changed

This commit is contained in:
arthur 2024-06-11 13:50:43 +08:00
parent e19aa4ba70
commit 70efad4973

View file

@ -31,11 +31,15 @@ return {
end, end,
}, },
}, },
cond = function(plugin) cond = function()
if not LazyVim.has("telescope.nvim") then if not LazyVim.has("telescope.nvim") then
return false return false
end end
if not vim.tbl_contains(LazyVim.config.json.data.extras, "lazyvim.plugins.extras.editor.medias") then
return false
end
local function disableWithWarnMessage(msg) local function disableWithWarnMessage(msg)
LazyVim.warn( LazyVim.warn(
"You have enabled extras.editor.medias, see (:`LazyExtras`). \n\n" "You have enabled extras.editor.medias, see (:`LazyExtras`). \n\n"
@ -94,7 +98,6 @@ return {
end end
end end
plugin.ft = supportedFiletypeSet:toList()
return true return true
end, end,
keys = { keys = {