2022-04-05 19:57:44 +00:00
|
|
|
(let [mod {}
|
|
|
|
builtin (require :telescope.builtin)
|
|
|
|
themes (require :telescope.themes)]
|
|
|
|
(fn mod.project-files []
|
|
|
|
(let [git-opts (themes.get_ivy)
|
|
|
|
find-opts (themes.get_ivy {:find_command [:rg
|
|
|
|
:--files
|
|
|
|
:--hidden
|
|
|
|
:-L
|
|
|
|
:-g
|
2022-05-01 19:52:10 +00:00
|
|
|
:!.git/*
|
|
|
|
:-g
|
|
|
|
:!node_modules/*]})
|
2022-04-05 19:57:44 +00:00
|
|
|
ok? (pcall builtin.git_files git-opts)]
|
|
|
|
(when (not ok?)
|
|
|
|
(builtin.find_files find-opts))))
|
|
|
|
|
|
|
|
mod)
|
2022-05-01 19:52:10 +00:00
|
|
|
|