telescope: replace line_grep with advanced_grep
This commit is contained in:
@@ -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
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user