-
Hello, I'd like some help on configuring my grep so that the result pane only display the name of the file, its path and the line of the match. Actually I've this : And I'd like to have this result : Could you point me to the right direction to get to the second screen ? Not sure this would help but here is my configuration for grep = {
cmd = "rg --column --line-number --fixed-strings",
rg_opts = "--column --line-number --no-heading --color=always --smart-case --fixed-strings",
winopts = { title = false },
prompt = " Search ❯ ",
input_prompt = " Grep For ❯ ",
},
Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Don't need to change the rg_opts, use :FzfLua live_grep fzf_opts.--delimiter=: fzf_opts.--with-nth=1..2 If you want this by default add this to your grep setup: grep = {
fzf_opts = {
["--delimiter"] = ":",
["--with-nth"] = "1..2",
}
} |
Beta Was this translation helpful? Give feedback.
-
Thanks the quick answer, look like I didn't understand what these options do ! |
Beta Was this translation helpful? Give feedback.
Don't need to change the rg_opts, use
--with-nth
to hide anything after the:
:If you want this by default add this to your grep setup: