Files
dotfiles-and-setup/src_files/.config/nvim/lua/plugins_lazy/telescope.lua

44 lines
1.3 KiB
Lua

return {
"nvim-telescope/telescope.nvim",
tag = "0.1.8",
dependencies = { "nvim-lua/plenary.nvim" },
opts = {
defaults = {
layout_strategy = "vertical",
layout_config = {
horizontal = {
width = 0.98,
height = 0.98,
preview_width = 0.45,
},
vertical = {
width = 0.98,
height = 0.98,
preview_height = 0.55,
preview_cutoff = 14,
prompt_position = 'bottom',
},
},
path_display = { "truncate", },
},
pickers = {
find_files = {
find_command = {
"rg", "--hidden", "--files", -- "--no-ignore",
"-g", "!**/.git/**",
"-g", "!**/build/**",
"-g", "!**/node_modules/**",
},
},
live_grep = {
additional_args = {
"--hidden", "--no-binary", -- "--no-ignore",
"-g", "!**/.git/**",
"-g", "!**/build/**",
"-g", "!**/node_modules/**",
}
},
},
},
}