local telescope = require('telescope') telescope.setup({ defaults = { file_ignore_patterns = {'.git'}, mappings = { i = { [''] = { '', type = 'command' }, [''] = 'close', [''] = 'select_horizontal', }, n = { q = 'close', [''] = { '', type = 'command' }, [''] = 'select_horizontal', }, }, sorting_strategy = 'ascending', layout_config = { prompt_position = 'top', }, prompt_prefix = '❯ ', selection_caret = '❯ ', multi_icon = '●', }, pickers = { buffers = { mappings = { n = { dd = 'delete_buffer', }, }, }, find_files = { hidden = true, }, lsp_code_actions = { initial_mode = 'normal', }, lsp_range_code_actions = { initial_mode = 'normal', }, }, }) telescope.load_extension('fzf') local map = vim.api.nvim_set_keymap map('n', 'pf', 'Telescope find_files', {noremap = true}) map('n', 'pb', 'Telescope buffers', {noremap = true}) map('n', 'po', 'Telescope lsp_document_symbols', {noremap = true}) map('n', 'p', ':Telescope ', {noremap = true}) map('n', 'p ', ':Telescope ', {noremap = true}) map('n', '.', 'Telescope lsp_code_actions', {noremap = true}) -- vim.cmd [[ -- function! s:telescope_hlsetup() abort -- highlight link TelescopeBorder NonText -- highlight link TelescopeTitle NonText -- endfunction -- call s:telescope_hlsetup() -- augroup telescope_hlsetup -- au! -- au ColorScheme * call s:telescope_hlsetup() -- augroup END -- ]]