From 0c2a48b0d624459e91ee44a719036627b7a019c4 Mon Sep 17 00:00:00 2001 From: caem Date: Tue, 23 Jul 2024 15:08:00 +0200 Subject: [PATCH] nvim: Always search all files --- users/hu/packages/nvim/config/lua/plugins/telescope.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/users/hu/packages/nvim/config/lua/plugins/telescope.lua b/users/hu/packages/nvim/config/lua/plugins/telescope.lua index ff4c681..e93dbb0 100644 --- a/users/hu/packages/nvim/config/lua/plugins/telescope.lua +++ b/users/hu/packages/nvim/config/lua/plugins/telescope.lua @@ -8,13 +8,7 @@ return { local map = require"util.map" -- Default pickers - map("n", "tf", function() - if vim.fn.isdirectory(".git") ~= 0 then - tb.git_files() - else - tb.find_files() - end - end, "[T]elescope [f]iles") + map("n", "tf", tb.find_files,"[T]elescope [f]iles") map("n", "tg", tb.live_grep, "[T]elescope [g]rep") map("n", "tb", tb.buffers, "[T]elescope [b]uffers") map("n", "tm", function()