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",