2022-03-25 12:57:59 +00:00
|
|
|
require("telescope").setup({
|
|
|
|
defaults = {
|
2022-04-18 13:51:15 +00:00
|
|
|
file_ignore_patterns = {
|
|
|
|
"%.svg",
|
|
|
|
"%.ardour",
|
|
|
|
"%.bak",
|
|
|
|
"%.jpg",
|
|
|
|
"%.png",
|
|
|
|
"%.gif",
|
|
|
|
"%.wav",
|
|
|
|
"%.blend",
|
|
|
|
},
|
2022-03-25 12:57:59 +00:00
|
|
|
vimgrep_arguments = {
|
|
|
|
"rg",
|
|
|
|
"--color=never",
|
|
|
|
"--no-heading",
|
|
|
|
"--with-filename",
|
|
|
|
"--line-number",
|
|
|
|
"--column",
|
|
|
|
"--smart-case",
|
|
|
|
-- Addition
|
|
|
|
"--follow",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
2022-03-20 16:16:01 +00:00
|
|
|
require("telescope").load_extension("fzf")
|
|
|
|
|
|
|
|
local M = {}
|
|
|
|
|
|
|
|
local find_files = require("telescope.builtin").find_files
|
|
|
|
|
|
|
|
M.custom_find_files = function()
|
|
|
|
local opts = { follow = true }
|
|
|
|
return find_files(opts)
|
|
|
|
end
|
|
|
|
|
|
|
|
M.custom_find_hidden_files = function()
|
|
|
|
local opts = { follow = true, hidden = true, no_ignore = true }
|
|
|
|
return find_files(opts)
|
|
|
|
end
|
|
|
|
|
|
|
|
return M
|