From 6ce9beff732640dc80887f0a82022989efcc3541 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Mon, 13 Jun 2022 21:58:46 +0200 Subject: [PATCH] nvim: Use fd for telescope files --- config/nvim/nifoc/telescope.fnl | 13 +++++++------ config/nvim/plugins/telescope.fnl | 2 +- programs/nvim/default.nix | 1 + 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/config/nvim/nifoc/telescope.fnl b/config/nvim/nifoc/telescope.fnl index a6314f1..9653734 100644 --- a/config/nvim/nifoc/telescope.fnl +++ b/config/nvim/nifoc/telescope.fnl @@ -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 [] diff --git a/config/nvim/plugins/telescope.fnl b/config/nvim/plugins/telescope.fnl index 9a83efe..6e0cea7 100644 --- a/config/nvim/plugins/telescope.fnl +++ b/config/nvim/plugins/telescope.fnl @@ -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}} diff --git a/programs/nvim/default.nix b/programs/nvim/default.nix index 957733f..ddca529 100644 --- a/programs/nvim/default.nix +++ b/programs/nvim/default.nix @@ -31,6 +31,7 @@ in git nodejs tree-sitter + fd ripgrep # LSP