Updates Telescope config to show hidden files and ignore others

This commit is contained in:
Thomas Lazarus 2025-09-30 10:21:17 -05:00
parent 448b882f34
commit 93231d06f7
No known key found for this signature in database
1 changed files with 17 additions and 8 deletions

View File

@ -5,20 +5,12 @@ return { -- Fuzzy Finder (files, lsp, etc)
'nvim-lua/plenary.nvim', 'nvim-lua/plenary.nvim',
{ -- If encountering errors, see telescope-fzf-native README for installation instructions { -- If encountering errors, see telescope-fzf-native README for installation instructions
'nvim-telescope/telescope-fzf-native.nvim', 'nvim-telescope/telescope-fzf-native.nvim',
-- `build` is used to run some command when the plugin is installed/updated.
-- This is only run then, not every time Neovim starts up.
build = 'make', build = 'make',
-- `cond` is a condition used to determine whether this plugin should be
-- installed and loaded.
cond = function() cond = function()
return vim.fn.executable 'make' == 1 return vim.fn.executable 'make' == 1
end, end,
}, },
{ 'nvim-telescope/telescope-ui-select.nvim' }, { 'nvim-telescope/telescope-ui-select.nvim' },
-- Useful for getting pretty icons, but requires a Nerd Font.
{ 'nvim-tree/nvim-web-devicons', enabled = vim.g.have_nerd_font }, { 'nvim-tree/nvim-web-devicons', enabled = vim.g.have_nerd_font },
}, },
config = function() config = function()
@ -53,6 +45,23 @@ return { -- Fuzzy Finder (files, lsp, etc)
-- }, -- },
-- }, -- },
-- pickers = {} -- pickers = {}
defaults = {
file_ignore_patterns = {
'.venv',
'%.git/',
'__pycache__',
'%.pyc',
-- Add other patterns you want to ignore
},
-- Show hidden files
hidden = true,
},
pickers = {
find_files = {
-- Also enable hidden files specifically for find_files
hidden = true,
},
},
extensions = { extensions = {
['ui-select'] = { ['ui-select'] = {
require('telescope.themes').get_dropdown(), require('telescope.themes').get_dropdown(),