Neovim_Backup/lua/plugins/telescope.lua
Price Hiller 7d70eda7a6 Current
2021-12-16 02:15:56 -06:00

39 lines
885 B
Lua
Executable File

local present, telescope = pcall(require, "telescope")
if not present then
return
end
local os = vim.loop.os_uname().sysname
if os == "Linux" then
telescope.setup {
extensions = {
media_files = {
filetypes = { "png", "webp", "jpg", "jpeg" },
find_cmd = "rg"
},
fzf = {
fuzzy = true,
override_generic_sorter = true,
override_file_sorter = true,
case_mode = "smart_case",
},
},
}
telescope.load_extension("media_files")
telescope.load_extension("find_directories")
telescope.load_extension("fzf")
else
telescope.setup {
extensions = {
fzf = {
fuzzy = true,
override_generic_sorter = true,
override_file_sorter = true,
case_mode = "smart_case",
}
},
}
telescope.load_extension("fzf")
telescope.load_extension("find_directories")
end