42 lines
1.1 KiB
Lua
42 lines
1.1 KiB
Lua
local glob_patterns_find_files = {
|
|
"-g", "!**/.git/**",
|
|
"-g", "!**/build/**",
|
|
"-g", "!**/node_modules/**",
|
|
}
|
|
local glob_patterns_live_grep = {
|
|
unpack(glob_patterns_find_files), -- same for now
|
|
}
|
|
|
|
return {
|
|
"nvim-telescope/telescope.nvim",
|
|
tag = "0.1.8",
|
|
dependencies = { "nvim-lua/plenary.nvim" },
|
|
opts = {
|
|
defaults = {
|
|
layout_strategy = "horizontal",
|
|
layout_config = {
|
|
horizontal = {
|
|
width = 0.98,
|
|
height = 0.98,
|
|
preview_width = 0.45,
|
|
},
|
|
},
|
|
path_display = { "truncate", },
|
|
},
|
|
pickers = {
|
|
find_files = {
|
|
find_command = {
|
|
"rg", "--no-ignore", "--hidden", "--files",
|
|
unpack(glob_patterns_find_files),
|
|
},
|
|
},
|
|
live_grep = {
|
|
additional_args = {
|
|
"--no-ignore", "--hidden",
|
|
unpack(glob_patterns_live_grep),
|
|
}
|
|
},
|
|
},
|
|
},
|
|
}
|