diff --git a/lua/lazyvim/plugins/extras/editor/fzf.lua b/lua/lazyvim/plugins/extras/editor/fzf.lua index 67acc830..8c40e5f3 100644 --- a/lua/lazyvim/plugins/extras/editor/fzf.lua +++ b/lua/lazyvim/plugins/extras/editor/fzf.lua @@ -167,6 +167,15 @@ return { }, }, grep = { + rg_glob = true, + -- first returned string is the new search query + -- second returned string are (optional) additional rg flags + -- @return string, string? + rg_glob_fn = function(query) + local regex, flags = query:match("^(.-)%s%-%-(.*)$") + -- If no separator is detected will return the original query + return (regex or query), flags + end, actions = { ["alt-i"] = { actions.toggle_ignore }, ["alt-h"] = { actions.toggle_hidden },