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 ]]
|
-- [[ Configure Telescope ]]
|
||||||
-- See `:help telescope` and `:help telescope.setup()`
|
-- See `:help telescope` and `:help telescope.setup()`
|
||||||
require('telescope').setup {
|
require('telescope').setup {
|
||||||
-- You can put your default mappings / updates / etc. in here
|
defaults = {
|
||||||
-- All the info you're looking for is in `:help telescope.setup()`
|
mappings = {
|
||||||
--
|
i = { ['<c-d>'] = require('telescope.actions').delete_buffer },
|
||||||
-- defaults = {
|
n = { ['<c-d>'] = require('telescope.actions').delete_buffer },
|
||||||
-- mappings = {
|
},
|
||||||
-- i = { ['<c-enter>'] = 'to_fuzzy_refine' },
|
file_ignore_patterns = {
|
||||||
-- },
|
'node_modules',
|
||||||
-- },
|
'package%-lock%.json',
|
||||||
-- pickers = {}
|
'yarn%.lock',
|
||||||
|
'pnpm%-lock%.yaml',
|
||||||
|
'%.git/',
|
||||||
|
'dist/',
|
||||||
|
'build/',
|
||||||
|
'%.next/',
|
||||||
|
'%.cache/',
|
||||||
|
},
|
||||||
|
},
|
||||||
extensions = {
|
extensions = {
|
||||||
['ui-select'] = { require('telescope.themes').get_dropdown() },
|
['ui-select'] = { require('telescope.themes').get_dropdown() },
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue