FollieHiyuki-dotfiles/home/.config/nvim/lua/modules/telescope-nvim.lua

44 lines
1.2 KiB
Lua
Raw Normal View History

2021-07-10 12:40:43 -04:00
local function telescope_setup()
require('telescope').setup {
defaults = {
prompt_prefix = '',
selection_caret = '',
set_env = {['COLORTERM'] = 'truecolor'},
layout_strategy = 'horizontal',
layout_config = {
horizontal = {
preview_width = 0.6
},
-- prompt_position = 'top',
width = 0.8,
height = 0.8
},
file_ignore_patterns = {'.git', '.svn', '.hg', 'node_modules'}
},
pickers = {
find_files = {
hidden = true,
follow = true
},
grep_string = {
opts = '--hidden'
}
},
extensions = {
project = {
base_dirs = {{'~/Code', max_depth = 2}}
},
2021-07-10 12:40:43 -04:00
fzf = {
fuzzy = true,
override_generic_sorter = false,
override_file_sorter = true,
case_mode = 'smart_case'
}
}
}
require('telescope').load_extension('project')
2021-07-10 12:40:43 -04:00
require('telescope').load_extension('fzf')
end
telescope_setup()