mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix typo
This commit is contained in:
parent
25686c4c64
commit
a2ac534c6b
1 changed files with 3 additions and 3 deletions
|
|
@ -84,16 +84,16 @@ return {
|
||||||
|
|
||||||
-- We checked that all required prerequisites were installed in the enabled function, but still ensure this again before setup.
|
-- We checked that all required prerequisites were installed in the enabled function, but still ensure this again before setup.
|
||||||
-- Set up the extension for media files when the telescope is loaded.
|
-- Set up the extension for media files when the telescope is loaded.
|
||||||
local medifaExtension = {
|
local mediaFilesExtension = {
|
||||||
filetypes = supportedFiletypeSet:toList(),
|
filetypes = supportedFiletypeSet:toList(),
|
||||||
find_cmd = findCmd,
|
find_cmd = findCmd,
|
||||||
}
|
}
|
||||||
if medifaExtension.find_cmd and #medifaExtension.filetypes > 0 then
|
if mediaFilesExtension.find_cmd and #mediaFilesExtension.filetypes > 0 then
|
||||||
LazyVim.on_load("telescope.nvim", function()
|
LazyVim.on_load("telescope.nvim", function()
|
||||||
local ok, telescope = pcall(require, "telescope")
|
local ok, telescope = pcall(require, "telescope")
|
||||||
if ok then
|
if ok then
|
||||||
telescope.extensions["media_files"] =
|
telescope.extensions["media_files"] =
|
||||||
vim.tbl_extend("force", telescope.extensions["media_files"] or {}, medifaExtension)
|
vim.tbl_extend("force", telescope.extensions["media_files"] or {}, mediaFilesExtension)
|
||||||
else
|
else
|
||||||
LazyVim.error("Failed to load telescope.nvim")
|
LazyVim.error("Failed to load telescope.nvim")
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue