1
Fork 0

nvim: Always search all files

This commit is contained in:
caem 2024-07-23 15:08:00 +02:00
parent 11787128cb
commit 0c2a48b0d6
Signed by: caem
GPG key ID: 69A830D03203405F

View file

@ -8,13 +8,7 @@ return {
local map = require"util.map" local map = require"util.map"
-- Default pickers -- Default pickers
map("n", "<leader>tf", function() map("n", "<leader>tf", tb.find_files,"[T]elescope [f]iles")
if vim.fn.isdirectory(".git") ~= 0 then
tb.git_files()
else
tb.find_files()
end
end, "[T]elescope [f]iles")
map("n", "<leader>tg", tb.live_grep, "[T]elescope [g]rep") map("n", "<leader>tg", tb.live_grep, "[T]elescope [g]rep")
map("n", "<leader>tb", tb.buffers, "[T]elescope [b]uffers") map("n", "<leader>tb", tb.buffers, "[T]elescope [b]uffers")
map("n", "<leader>tm", function() map("n", "<leader>tm", function()