Set 'root' for git_files picker? #1191
-
Hi, Does anyone know of a way to change the 'root' for the git_files picker? I'm working in a (huge) monorepo, and start a separate neovim instance per 'application', which basically is a subdir of the monorepo. The local git repository itself, however, lives at the root of the monorepo. If i I therefore start a git_files picker for an 'application' neovim instance, it will include all files of the entire monorepo, rather than just the files constrained by the subdir. Note that the regular files picker works as desired, since it automatically uses the current directory as 'root'. However, that picker obviously does not take the root .gitignore into account, returning too many useless results. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I believe you can pass |
Beta Was this translation helpful? Give feedback.
I believe you can pass
cwd
togit_grep
'sopts
. But not familiar at all with monorepos, so really don't know if that will work for you.