vim-agriculture
vim-agriculture copied to clipboard
Respect .gitignore
:Ag will search in files inside node_modules too, even tho node_modules is ignored in my .gitignore With fzf :GFiles, for example I don`t have this issue, also :Rg and CtrlP work fine
Weird, this isn't happening for me. I have to explicitly pass -U to :AgRaw -U 'some search' to get ignored node_modules results here.
PS. The :Ag and :Rg commands are fzf.vim implementations, defined outside of agriculture here; I assume you mean the :AgRaw and :RgRaw commands?
Thanks for your answer. This happens for both :Ag and :AgRaw actually. In the bellow image you can see my .gitignore in the root directory (where I started nvim). And you can see in the search results (generated with :AgRaw Object, as an example), finding stuff in nested node_modules folders, that should have been ignored by **/node_modules line.
