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)
|
||||
themes (require :telescope.themes)]
|
||||
(fn mod.find-files []
|
||||
(let [find-opts (themes.get_ivy {:find_command [:rg
|
||||
:--files
|
||||
(let [find-opts (themes.get_ivy {:find_command [:fd
|
||||
:--hidden
|
||||
:--ignore-vcs
|
||||
:-L
|
||||
:-g
|
||||
:!.git/*
|
||||
:-g
|
||||
:!node_modules/*]})]
|
||||
:--color
|
||||
:never
|
||||
:--exclude
|
||||
:.git
|
||||
:--exclude
|
||||
:node_modules]})]
|
||||
(builtin.find_files find-opts)))
|
||||
|
||||
(fn mod.project-files []
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
:prompt_prefix " "
|
||||
:selection_caret " "
|
||||
:set_env {:COLORTERM :truecolor}
|
||||
:path_display [:smart :absolute]
|
||||
:path_display [:truncate :absolute]
|
||||
; Layout
|
||||
:layout_strategy :horizontal
|
||||
:layout_config {:horizontal {:preview_width 0.5}}
|
||||
|
|
|
@ -31,6 +31,7 @@ in
|
|||
git
|
||||
nodejs
|
||||
tree-sitter
|
||||
fd
|
||||
ripgrep
|
||||
|
||||
# LSP
|
||||
|
|
Loading…
Reference in a new issue