From 8eaa615596be321a3be12378c5e7d65cc7e482b6 Mon Sep 17 00:00:00 2001 From: Squibid Date: Fri, 24 Jan 2025 13:56:11 -0600 Subject: kitchen sink --- lua/conf/plugins/telescope.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'lua/conf/plugins/telescope.lua') diff --git a/lua/conf/plugins/telescope.lua b/lua/conf/plugins/telescope.lua index 68a7c23..597fbe3 100644 --- a/lua/conf/plugins/telescope.lua +++ b/lua/conf/plugins/telescope.lua @@ -76,6 +76,21 @@ return { 'nvim-telescope/telescope.nvim', map('n', 'b', telebuilt.current_buffer_fuzzy_find, { desc = 'Find string in current buffer.', }) + map('n', 'i', telebuilt.help_tags, { + desc = 'Fuzzy find over help tags.', + }) + + -- find over specific directories + map('n', 'tc', function() + require('telescope.builtin').find_files { + cwd = vim.fn.stdpath("config") + } + end, { desc = "Fuzzy find over files in my config" }) + map('n', 'tp', function() + require('telescope.builtin').find_files { + cwd = vim.fs.joinpath(vim.fn.stdpath("data"), "site/pack/deps/opt") + } + end, { desc = "Fuzzy find over files in my plugin directory" }) -- enable previewing in the default colorscheme switcher telebuilt.colorscheme = function() -- cgit v1.2.1