return { -- You can also add new plugins here as well: -- Add plugins, the lazy syntax -- "andweeb/presence.nvim", -- { -- "ray-x/lsp_signature.nvim", -- event = "BufRead", -- config = function() -- require("lsp_signature").setup() -- end, -- }, { "notjedi/nvim-rooter.lua", event = "UIEnter", config = function() require("nvim-rooter").setup { rooter_patterns = { "compile_commands.json", ".git", ".hg", ".svn" }, trigger_patterns = { "*" }, manual = false, } end, }, { "nvim-telescope/telescope.nvim", opts = function() local actions = require "telescope.actions" local get_icon = require("astronvim.utils").get_icon return { defaults = { prompt_prefix = string.format("%s ", get_icon "Search"), selection_caret = string.format("%s ", get_icon "Selected"), path_display = { "truncate" }, sorting_strategy = "ascending", layout_config = { horizontal = { prompt_position = "bottom", preview_width = 0.55, }, vertical = { mirror = false, }, width = 0.87, height = 0.80, preview_cutoff = 120, }, mappings = { i = { [""] = actions.cycle_history_next, [""] = actions.cycle_history_prev, [""] = actions.move_selection_next, [""] = actions.move_selection_previous, }, n = { ["q"] = actions.close }, }, }, } end, -- the first parameter is the plugin specification -- the second is the table of options as set up in Lazy with the `opts` key config = function(plugin, opts) -- run the core AstroNvim configuration function with the options table require "plugins.configs.telescope"(plugin, opts) end, }, }