Configure Telescope with buffer delete and file ignore patterns
- Add Ctrl+d to delete buffers from the Telescope picker - Ignore node_modules, lock files, dist, build, and cache dirs in search Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
1e3180f5db
commit
5fd790130b
26
init.lua
26
init.lua
|
|
@ -394,15 +394,23 @@ require('lazy').setup({
|
|||
-- [[ Configure Telescope ]]
|
||||
-- See `:help telescope` and `:help telescope.setup()`
|
||||
require('telescope').setup {
|
||||
-- You can put your default mappings / updates / etc. in here
|
||||
-- All the info you're looking for is in `:help telescope.setup()`
|
||||
--
|
||||
-- defaults = {
|
||||
-- mappings = {
|
||||
-- i = { ['<c-enter>'] = 'to_fuzzy_refine' },
|
||||
-- },
|
||||
-- },
|
||||
-- pickers = {}
|
||||
defaults = {
|
||||
mappings = {
|
||||
i = { ['<c-d>'] = require('telescope.actions').delete_buffer },
|
||||
n = { ['<c-d>'] = require('telescope.actions').delete_buffer },
|
||||
},
|
||||
file_ignore_patterns = {
|
||||
'node_modules',
|
||||
'package%-lock%.json',
|
||||
'yarn%.lock',
|
||||
'pnpm%-lock%.yaml',
|
||||
'%.git/',
|
||||
'dist/',
|
||||
'build/',
|
||||
'%.next/',
|
||||
'%.cache/',
|
||||
},
|
||||
},
|
||||
extensions = {
|
||||
['ui-select'] = { require('telescope.themes').get_dropdown() },
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue