nvim-telescope / telescope-live-grep-args.nvim

Live grep with args
727 stars 40 forks source link

passing a default string value when opening? #25

Closed gilbh closed 2 years ago

gilbh commented 2 years ago

Hi,

Is it possible to pass the string/pattern to be searched? Something link:

:lua require("telescope").extensions.live_grep_args.live_grep_args({value=[STRING_TO_SEARCH]})

Thanks!

weeman1337 commented 2 years ago

Hi @gilbh :wave:

Yes, it is: :lua require("telescope").extensions.live_grep_args.live_grep_args({default_text="test"})

gilbh commented 2 years ago

Thanks!

(I couldn't locate instructions on arguments, is there one and where?)