+ + +```viml +set nocompatible hidden laststatus=2 + +if !filereadable('/tmp/plug.vim') + silent !curl --insecure -fLo /tmp/plug.vim + \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim +endif + +source /tmp/plug.vim +call plug#begin('/tmp/plugged') +Plug 'nvim-lua/popup.nvim' +Plug 'nvim-lua/plenary.nvim' +Plug 'nvim-telescope/telescope.nvim' +call plug#end() + +autocmd VimEnter * PlugClean! | PlugUpdate --sync | close +lua << EOF + +require('telescope').setup{ + defaults = { + vimgrep_arguments = { + 'rg', + '--color=never', + '--no-heading', + '--with-filename', + '--line-number', + '--column', + '--smart-case' + }, + prompt_position = "bottom", + prompt_prefix = ">", + selection_strategy = "reset", + sorting_strategy = "descending", + layout_strategy = "horizontal", + layout_defaults = {}, + file_ignore_patterns = {}, + shorten_path = true, + winblend = 0, + width = 0.75, + preview_cutoff = 120, + results_height = 1, + results_width = 0.8, + border = {}, + borderchars = { '─', '│', '─', '│', '╭', '╮', '╯', '╰'}, + color_devicons = true, + use_less = true, + } +} +EOF +```