mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
update the plugin spec
This commit is contained in:
parent
e3d071ec29
commit
297e83f110
1 changed files with 79 additions and 85 deletions
|
|
@ -19,12 +19,10 @@ function supportedFiletypeSet:toList()
|
|||
end
|
||||
|
||||
return {
|
||||
{
|
||||
"nvim-telescope/telescope.nvim",
|
||||
dependencies = {
|
||||
{
|
||||
"nvim-telescope/telescope-media-files.nvim",
|
||||
event = "VeryLazy",
|
||||
dependencies = "nvim-telescope/telescope.nvim",
|
||||
enabled = function()
|
||||
if not LazyVim.has("telescope.nvim") then
|
||||
return false
|
||||
|
|
@ -92,7 +90,6 @@ return {
|
|||
return true
|
||||
end,
|
||||
config = function(_, opts)
|
||||
LazyVim.on_load("telescope.nvim", function()
|
||||
local ok, err = pcall(require("telescope").load_extension, "media_files")
|
||||
if ok then
|
||||
opts.extensions = vim.tbl_extend("force", opts.extensions or {}, {
|
||||
|
|
@ -101,12 +98,9 @@ return {
|
|||
else
|
||||
LazyVim.error("Failed to load the telescope extension for `telescope-media-files.nvim`:\n" .. err)
|
||||
end
|
||||
end)
|
||||
end,
|
||||
keys = {
|
||||
{ "<leader>fm", "<cmd>Telescope media_files<cr>", desc = "Find Media Files" },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue