Files
nvim-config/lua/configs/telescope.lua
T
2024-11-02 09:05:33 +00:00

56 lines
1.3 KiB
Lua

dofile(vim.g.base46_cache .. "telescope")
local open_with_trouble = require("trouble.sources.telescope").open
local options = {
pickers = {
colorscheme = { enable_preview = true },
find_files = {
find_command = { "rg", "--files", "--hidden", "--glob", "!**/.git/*" },
},
defaults = {
vimgrep_arguments = {
"rg",
"--no-heading",
"--with-filename",
"--line-number",
"--column",
"--smart-case",
"--hidden",
},
sort_mru = true,
},
},
defaults = {
prompt_prefix = "  ",
selection_caret = " ",
entry_prefix = " ",
sorting_strategy = "ascending",
layout_config = {
horizontal = {
prompt_position = "top",
preview_width = 0.55,
},
width = 0.87,
height = 0.80,
},
mappings = {
n = { ["<C-q>"] = open_with_trouble, ["<C-t>"] = open_with_trouble },
i = { ["<C-q>"] = open_with_trouble, ["<C-t>"] = open_with_trouble },
},
},
extensions_list = { "themes", "terms" },
extensions = {
repo = {
list = {
fd_opts = { "--max-depth", "3", "--exclude", "lib", "--exclude", "cargo", "--exclude", "node_modules", "-j2" },
search_dirs = { "~/projects", "~/subvisual", "~/ethui" },
},
settings = { auto_lcd = true },
},
},
}
return options