--[ -- A plugin to make "search box" and panel. -- Good UI. 👍 --] return { "nvim-telescope/telescope.nvim", enabled = true, branch = "0.1.x", dependencies = { "nvim-lua/plenary.nvim", { "nvim-telescope/telescope-fzf-native.nvim", build = "make", }, "nvim-tree/nvim-web-devicons", "folke/todo-comments.nvim", "tiagovla/scope.nvim", }, -- TODO config = function() local telescope = require("telescope") local actions = require("telescope.actions") -- TODO: lqsdjflkqjsdf telescope.setup({ defaults = { path_display = { "smart" }, mappings = { i = { [""] = actions.move_selection_previous, -- move tot prev result [""] = actions.move_selection_next, [""] = actions.send_selected_to_qflist + actions.open_qflist, [""] = false, [""] = actions.close, }, }, sorting_strategy = "ascending", layout_strategy = "horizontal", layout_config = { prompt_position = "top", }, borderchars = { "─", "│", "─", "│", "r", "╮", "╯", "╰" }, color_devicons = true, }, pickers = { -- NOTE: List of theme colorscheme = { enable_preview = true, ignore_builtins = true, colors = { "nightfox", "duskfox", "dawnfox", "terafox", "carbonfox", "cyberdream", "jellybeans-nvim", "ayu", "pastelnight", "night-owl", "material", "github_dark", "github_dark_colorblind", "github_light_high_contrast", }, }, }, }) telescope.load_extension("fzf") telescope.load_extension("scope") vim.keymap.set("n", "ff", "Telescope find_files", { desc = "Fuzzy find files in cwd" }) vim.keymap.set("n", "fr", "Telescope oldfiles", { desc = "Fuzzy find recet files" }) vim.keymap.set("n", "fs", "Telescope live_grep", { desc = "Find string in cwd" }) vim.keymap.set( "n", "fc", "Telescope grep_string", { desc = "Find string under cursor in cwd" } ) vim.keymap.set("n", "ft", "TodoTelescope", { desc = "Find todos" }) vim.keymap.set("n", "fb", "Telescope scope buffers", { desc = "Find in buffers" }) -- Colorscheme picker vim.keymap.set("n", "cc", "Telescope colorscheme", { desc = "Switch colorscheme" }) end, }