Updates Telescope config to show hidden files and ignore others
This commit is contained in:
parent
448b882f34
commit
93231d06f7
|
|
@ -5,20 +5,12 @@ return { -- Fuzzy Finder (files, lsp, etc)
|
|||
'nvim-lua/plenary.nvim',
|
||||
{ -- If encountering errors, see telescope-fzf-native README for installation instructions
|
||||
'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',
|
||||
|
||||
-- `cond` is a condition used to determine whether this plugin should be
|
||||
-- installed and loaded.
|
||||
cond = function()
|
||||
return vim.fn.executable 'make' == 1
|
||||
end,
|
||||
},
|
||||
{ '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 },
|
||||
},
|
||||
config = function()
|
||||
|
|
@ -53,6 +45,23 @@ return { -- Fuzzy Finder (files, lsp, etc)
|
|||
-- },
|
||||
-- },
|
||||
-- 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 = {
|
||||
['ui-select'] = {
|
||||
require('telescope.themes').get_dropdown(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue