Skip to content

grep_open_files and search_dirs #1674

Answered by ibhagwan
linusboehm asked this question in Q&A
Discussion options

You must be logged in to vote

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" }
})

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@linusboehm
Comment options

@linusboehm
Comment options

@ibhagwan
Comment options

Answer selected by linusboehm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants