nvim: Use fd for telescope files
This commit is contained in:
parent
e82aa43f97
commit
6ce9beff73
3 changed files with 9 additions and 7 deletions
|
@ -2,15 +2,16 @@
|
||||||
builtin (require :telescope.builtin)
|
builtin (require :telescope.builtin)
|
||||||
themes (require :telescope.themes)]
|
themes (require :telescope.themes)]
|
||||||
(fn mod.find-files []
|
(fn mod.find-files []
|
||||||
(let [find-opts (themes.get_ivy {:find_command [:rg
|
(let [find-opts (themes.get_ivy {:find_command [:fd
|
||||||
:--files
|
|
||||||
:--hidden
|
:--hidden
|
||||||
:--ignore-vcs
|
:--ignore-vcs
|
||||||
:-L
|
:-L
|
||||||
:-g
|
:--color
|
||||||
:!.git/*
|
:never
|
||||||
:-g
|
:--exclude
|
||||||
:!node_modules/*]})]
|
:.git
|
||||||
|
:--exclude
|
||||||
|
:node_modules]})]
|
||||||
(builtin.find_files find-opts)))
|
(builtin.find_files find-opts)))
|
||||||
|
|
||||||
(fn mod.project-files []
|
(fn mod.project-files []
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
:prompt_prefix " "
|
:prompt_prefix " "
|
||||||
:selection_caret " "
|
:selection_caret " "
|
||||||
:set_env {:COLORTERM :truecolor}
|
:set_env {:COLORTERM :truecolor}
|
||||||
:path_display [:smart :absolute]
|
:path_display [:truncate :absolute]
|
||||||
; Layout
|
; Layout
|
||||||
:layout_strategy :horizontal
|
:layout_strategy :horizontal
|
||||||
:layout_config {:horizontal {:preview_width 0.5}}
|
:layout_config {:horizontal {:preview_width 0.5}}
|
||||||
|
|
|
@ -31,6 +31,7 @@ in
|
||||||
git
|
git
|
||||||
nodejs
|
nodejs
|
||||||
tree-sitter
|
tree-sitter
|
||||||
|
fd
|
||||||
ripgrep
|
ripgrep
|
||||||
|
|
||||||
# LSP
|
# LSP
|
||||||
|
|
Loading…
Reference in a new issue