obsidian and update to telescope for hidden files

This commit is contained in:
Tawfeeq 2025-04-17 11:07:06 +02:00
parent 4fe0e2df2e
commit e9d73e2249
3 changed files with 33 additions and 8 deletions

View file

@ -515,12 +515,35 @@ require('lazy').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-enter>'] = 'to_fuzzy_refine' },
},
vimgrep_arguments = {
'rg',
'--hidden',
'--color=never',
'--no-heading',
'--with-filename',
'--line-number',
'--column',
'--smart-case',
},
},
pickers = {
find_files = {
file_ignore_patterns = { '.git' },
hidden = true,
},
live_grep = {
file_ignore_patterns = {
'.git',
},
additional_args = function(_)
return { '--hidden' }
end,
},
},
extensions = {
['ui-select'] = {
require('telescope.themes').get_dropdown(),