telescope: replace line_grep with advanced_grep

This commit is contained in:
2025-10-13 17:42:48 +03:00
parent 79a572e033
commit 99707245a6
2 changed files with 66 additions and 4 deletions

View File

@@ -26,7 +26,8 @@ return {
'node_modules',
'galaxy-roles',
'galaxy-collections',
'.git/',
'.git',
'.terraform',
}
},
extensions = {
@@ -45,9 +46,9 @@ return {
prev = '<S-Tab>'
},
tabs = {
{ name = 'Files', tele_func = builtin.find_files, tele_opts = { no_ignore = true, hidden = true } },
{ name = 'Grep', tele_func = builtin.live_grep },
{ name = 'Buffers', tele_func = builtin.buffers },
{ name = 'Files', tele_func = builtin.find_files, tele_opts = { no_ignore = true, hidden = true } },
{ name = 'Advanced Grep', tele_func = require('crentist.telescope.advanced_grep').advanced_grep },
{ name = 'Buffers', tele_func = builtin.buffers },
},
append_tabs = { -- append_tabs will add the provided tabs to the default ones
{
@@ -57,6 +58,13 @@ return {
return vim.fn.isdirectory('.git') == 1
end
},
{
'Stash',
builtin.git_stash,
available = function()
return vim.fn.isdirectory('.git') == 1
end
},
},
})