1
0
Fork 0

nvim: Use fd for telescope files

This commit is contained in:
Daniel Kempkens 2022-06-13 21:58:46 +02:00
parent e82aa43f97
commit 6ce9beff73
3 changed files with 9 additions and 7 deletions

View file

@ -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 []

View file

@ -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}}

View file

@ -31,6 +31,7 @@ in
git
nodejs
tree-sitter
fd
ripgrep
# LSP