From db93bd1ab9fbf4d852abe61bd282afdd73cc2a7e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lukas=20H=C3=A4gele?= Date: Mon, 5 Oct 2026 19:29:08 +0200 Subject: [PATCH] add keymap to search file in all repos --- lua/config/plugins/telescope.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lua/config/plugins/telescope.lua b/lua/config/plugins/telescope.lua index 786c3c5..74e41c4 100644 --- a/lua/config/plugins/telescope.lua +++ b/lua/config/plugins/telescope.lua @@ -27,6 +27,7 @@ return { -- "find tag in all tags" vim.keymap.set("n", "ta", require('telescope.builtin').tags) + -- "find tag in current buffer" vim.keymap.set("n", "tl", require('telescope.builtin').current_buffer_tags) @@ -46,7 +47,14 @@ return { } end) - -- "find in lazy (plugins)" + -- "find file in all repos" + vim.keymap.set("n", "fr", function() + require('telescope.builtin').find_files{ + cwd = vim.fn.expand("~/") .. "software/repos/" + } + end) + + -- "find file in lazy (plugins)" vim.keymap.set("n", "fl", function() require('telescope.builtin').find_files { cwd = vim.fn.stdpath("data") .. "/lazy" -- 2.39.5