local status_ok, telescope = pcall(require, "telescope") if not status_ok then return end local actions = require('telescope.actions') local action_layout = require("telescope.actions.layout") telescope.setup { defaults = { borderchars = { prompt = {' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' }; results = {' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' }; preview = {' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' }; }, sorting_strategy = 'ascending', -- 'horizontal', 'vertical', 'bottom_pane', or 'cursor' layout_strategy = 'bottom_pane', layout_config = { bottom_pane = { height = 0.4, }, }, mappings = { i = { [""] = actions.close, [''] = 'which_key', [''] = actions.move_selection_next, [''] = actions.move_selection_previous, [''] = actions.select_default, [''] = actions.preview_scrolling_up, [''] = actions.preview_scrolling_down, [""] = action_layout.toggle_preview }, n = { ["gg"] = actions.move_to_top, ["G"] = actions.move_to_bottom, }, }, } } telescope.load_extension('file_browser') telescope.load_extension('ui-select') telescope.load_extension('projects') a.nvim_create_autocmd('User', { pattern = 'TelescopePreviewerLoaded', command = 'setlocal number', })