From e332b794f5e0465cf7b484d78a8fc130a9a9c7ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrzej=20Wi=C4=85cek?= Date: Tue, 28 Oct 2025 23:47:00 +0100 Subject: [PATCH] Export Telescope project-wide search path to a variable --- lua/plugins/telescope.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua index 21700e1..9e6c21e 100644 --- a/lua/plugins/telescope.lua +++ b/lua/plugins/telescope.lua @@ -1,15 +1,15 @@ local map = vim.keymap.set +local projects_root_path = "~/Workspace" map("n", "f", "Telescope find_files") map("n", "g", "Telescope live_grep") map("n", "b", "Telescope buffers") map("n", "F", function() - local path = "~/Workspace" - vim.notify("Searching in " .. path, vim.log.levels.WARN, { + vim.notify("Searching in " .. projects_root_path, vim.log.levels.WARN, { title = "Multi-project search 🔎", }) require("telescope.builtin").find_files { - cwd = vim.fn.expand(path), + cwd = vim.fn.expand(projects_root_path), hidden = true, find_command = { "fd",