38 lines
959 B
Lua
38 lines
959 B
Lua
local actions = require('telescope.actions')
|
|
require('telescope').setup {
|
|
defaults = {
|
|
vimgrep_arguments = {
|
|
'rg',
|
|
'--no-heading',
|
|
'--with-filename',
|
|
'--line-number',
|
|
'--column',
|
|
'--smart-case'
|
|
},
|
|
sorting_strategy = "ascending",
|
|
layout_config = {
|
|
width = 0.75,
|
|
prompt_position = "top",
|
|
preview_cutoff = 120,
|
|
},
|
|
find_command = {'fd', '-t f', '-c always', '-H'},
|
|
-- find_command = {'rg', '--no-heading', '--with-filename', '--line-number', '--column', '--smart-case'},
|
|
selection_caret = "→",
|
|
color_devicons = true,
|
|
set_env = {['COLORTERM'] = 'truecolor'},
|
|
mappings = {
|
|
i = {
|
|
["<C-q>"] = actions.smart_send_to_qflist + actions.open_qflist,
|
|
["<C-x>"] = false,
|
|
["<C-o>"] = actions.select_horizontal,
|
|
["<CR>"] = actions.select_default + actions.center
|
|
},
|
|
n = {
|
|
["<C-q>"] = actions.smart_send_to_qflist + actions.open_qflist,
|
|
}
|
|
},
|
|
}
|
|
}
|
|
|
|
require('telescope').load_extension('fzf')
|