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
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
{
|
|
||||||
"nvim-telescope/telescope.nvim",
|
|
||||||
dependencies = {
|
|
||||||
{
|
{
|
||||||
"nvim-telescope/telescope-media-files.nvim",
|
"nvim-telescope/telescope-media-files.nvim",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
|
dependencies = "nvim-telescope/telescope.nvim",
|
||||||
enabled = function()
|
enabled = function()
|
||||||
if not LazyVim.has("telescope.nvim") then
|
if not LazyVim.has("telescope.nvim") then
|
||||||
return false
|
return false
|
||||||
|
|
@ -92,7 +90,6 @@ return {
|
||||||
return true
|
return true
|
||||||
end,
|
end,
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
LazyVim.on_load("telescope.nvim", function()
|
|
||||||
local ok, err = pcall(require("telescope").load_extension, "media_files")
|
local ok, err = pcall(require("telescope").load_extension, "media_files")
|
||||||
if ok then
|
if ok then
|
||||||
opts.extensions = vim.tbl_extend("force", opts.extensions or {}, {
|
opts.extensions = vim.tbl_extend("force", opts.extensions or {}, {
|
||||||
|
|
@ -101,12 +98,9 @@ return {
|
||||||
else
|
else
|
||||||
LazyVim.error("Failed to load the telescope extension for `telescope-media-files.nvim`:\n" .. err)
|
LazyVim.error("Failed to load the telescope extension for `telescope-media-files.nvim`:\n" .. err)
|
||||||
end
|
end
|
||||||
end)
|
|
||||||
end,
|
end,
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>fm", "<cmd>Telescope media_files<cr>", desc = "Find Media Files" },
|
{ "<leader>fm", "<cmd>Telescope media_files<cr>", desc = "Find Media Files" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue