You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, there is no wiki/man and I'm trying to figure out what the setting rg_root_type does since the name isn't self-describing.
The description says "list of files/dir found in project root" with default being ['.git'].
"list of files/dir found"?
so I guess if it finds a .git folder in my "project root" it ignores it?
I'm already using --glob "!.git" in g:rg_command. I removed it to test and it doesn't seem to ignore any .git folder so I don't know what it does.
what does "project root" mean?
is it the current working directory of the current buffer or something else?
If someone could enlighten me that would be cool. Thanks!
The text was updated successfully, but these errors were encountered:
Hi.
It's the same behaviour ripgrep has, have a look at its documentation.
It basically is a way to give the tool a "project" context. ripgrep will search all directories upwards of where the currently edited file is, and when it finds a file/folder that matches one of the patters specified there, it will set that directory as the project root. Then it will perform your search on all the files that are contained within that root, no matter where your currently edited file is or what's your current working directory in vim.
Remember to also enable the 'g:rg_derive_root' setting if you wanna try the feature.
Hello, there is no wiki/man and I'm trying to figure out what the setting
rg_root_type
does since the name isn't self-describing.The description says "list of files/dir found in project root" with default being
['.git']
."list of files/dir found"?
so I guess if it finds a .git folder in my "project root" it ignores it?
I'm already using
--glob "!.git"
ing:rg_command
. I removed it to test and it doesn't seem to ignore any .git folder so I don't know what it does.what does "project root" mean?
is it the current working directory of the current buffer or something else?
If someone could enlighten me that would be cool. Thanks!
The text was updated successfully, but these errors were encountered: