return { { 'nvim-telescope/telescope.nvim', enabled = vim.fn.executable("fzf") == 1, dependencies = { { 'nvim-lua/plenary.nvim', }, { 'nvim-telescope/telescope-fzf-native.nvim', enabled = vim.fn.executable("make") == 1, build = "make" }, }, cmd = { "Telescope" }, keys = { { 'fb', 'Telescope buffers' }, { 'ff', 'Telescope find_files' }, { 'fg', 'Telescope live_grep' }, { 'fc', 'Telescope git_commits' }, { 'fd', 'Telescope diagnostics' }, { '', 'Telescope buffers' }, }, config = function() local telescope = require("telescope") local actions = require("telescope.actions") telescope.load_extension("fzf") telescope.setup({ pickers = { find_files = { hidden = true, }, }, defaults = { mappings = { i = { [""] = actions.move_selection_next, [""] = actions.move_selection_previous, [""] = actions.preview_scrolling_down, [""] = actions.preview_scrolling_up, [""] = actions.toggle_all, [""] = actions.toggle_selection, }, n = { [""] = actions.move_selection_next, [""] = actions.move_selection_previous, [""] = actions.preview_scrolling_down, [""] = actions.preview_scrolling_up, [""] = actions.toggle_all, } }, selection_caret = " ", path_display = { "truncate" }, file_ignore_patterns = { "%.git/", "%.svn/", "%.o", "%.a", "%.so", "a%.out", "venv/", "CMakeFiles/", "cmake_install%.cmake", "CMakeCache%.txt", "target/", "%.pytest_cache/", "vendor/", "%.lock", "%.db", "%.sqlite3", "%.sqlite", "%.ipynb", "%.svg", "%.burp", "%.mp4", "%.png", "%.jpeg", "%.jpg", "%.gif", "%.mkv", "%.otf", "%.ttf", "%.webp", "%.bin", "%.dart_tool/", "%.gradle/", "%.idea/", "%.settings/", "%.vscode/", "pycache/", "build/", "env/", "gradle/", "node_modules/", "%.pdb", "%.dll", "%.class", "%.exe", "%.cache", "%.ico", "%.pdf", "%.dylib", "%.jar", "%.docx", "%.met", "%.vale/", "%.rar", "%.zip", "%.7z", "%.tar", "%.xz", "%.gz", "%.bz2", "%.epub", "%.flac", "%.tar.gz", }, } }) end } }