grep_open_files and search_dirs #1674
Answered
by
ibhagwan
linusboehm
asked this question in
Q&A
-
Hi, I'm trying to switch from telescope to fzf-lua, but I can't figure out how to achieve a similar behavior for the grep_open_files (to search a string in all open buffers) and the search_dirs (to provide a list of directories to search in) options. Would appreciate some help on how to replicate these two functionalities. |
Beta Was this translation helpful? Give feedback.
Answered by
ibhagwan
Jan 6, 2025
Replies: 1 comment 3 replies
-
Use search paths: -- When using the vimL command do not use (or escape) spaces in the args
:FzfLua live_grep search_paths={"~/.local/share/nvim","~/.config/nvim"}
-- Or
:lua require("fzf-lua").live_grep({
-- Paths can be either file or directory
search_paths = { "~/.config/nvim/init.lua", "~/.local/share/nvim/lazy" }
}) |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
linusboehm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use search paths: