From de67aa7e8c0884810a3399c51b635edc408fac93 Mon Sep 17 00:00:00 2001 From: Daniil Rozanov Date: Thu, 6 Mar 2025 22:08:17 +0400 Subject: Mail management by aerc, notmuch and isync. RSS by newsboat. And minor --- nvim/.config/nvim/lua/custom/telescope.lua | 41 ++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'nvim') diff --git a/nvim/.config/nvim/lua/custom/telescope.lua b/nvim/.config/nvim/lua/custom/telescope.lua index ffe6ac0..219264b 100644 --- a/nvim/.config/nvim/lua/custom/telescope.lua +++ b/nvim/.config/nvim/lua/custom/telescope.lua @@ -12,6 +12,47 @@ require("telescope").setup { require("telescope.themes").get_dropdown(), }, }, + defaults = { + -- configure to use ripgrep + vimgrep_arguments = { + "rg", + "--follow", -- Follow symbolic links + "--hidden", -- Search for hidden files + "--no-heading", -- Don't group matches by each file + "--with-filename", -- Print the file path with the matched lines + "--line-number", -- Show line numbers + "--column", -- Show column numbers + "--smart-case", -- Smart case search + + -- Exclude some patterns from search + "--glob=!**/.git/*", + "--glob=!**/.idea/*", + "--glob=!**/.vscode/*", + "--glob=!**/build/*", + "--glob=!**/dist/*", + "--glob=!**/yarn.lock", + "--glob=!**/package-lock.json", + }, + }, + pickers = { + find_files = { + hidden = true, + -- needed to exclude some files & dirs from general search + -- when not included or specified in .gitignore + find_command = { + "rg", + "--files", + "--hidden", + "--glob=!**/.git/*", + "--glob=!**/.idea/*", + "--glob=!**/.vscode/*", + "--glob=!**/build/*", + "--glob=!**/dist/*", + "--glob=!**/yarn.lock", + "--glob=!**/package-lock.json", + }, + }, + }, } pcall(require("telescope").load_extension, "fzf") -- cgit v1.2.3