diff options
author | Daniil Rozanov <dev@rozanov.info> | 2025-03-06 22:08:17 +0400 |
---|---|---|
committer | Daniil Rozanov <dev@rozanov.info> | 2025-03-06 22:08:17 +0400 |
commit | de67aa7e8c0884810a3399c51b635edc408fac93 (patch) | |
tree | 62ca21543aeee7a070f6beb5fc9025fce13f90f9 /nvim | |
parent | 011d8405259d03fa422ea2f79b55db2b6c533476 (diff) |
Mail management by aerc, notmuch and isync. RSS by newsboat. And minor
Diffstat (limited to 'nvim')
-rw-r--r-- | nvim/.config/nvim/lua/custom/telescope.lua | 41 |
1 files changed, 41 insertions, 0 deletions
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") |