Ignore files on monorepo

276 Views Asked by At

I'm working on a monorepo, which means I have to constantly switch between folders (say web and server). I noticed that when I open a file from project "A" the ignored file patterns works as expected, but when I switch to project "B" the ignored patterns don't work.

.
├── server <-- 1. I open a file here and node_modules is ignored
└── web <-- 2. I open a file here and node_modules is not ignored

Here's my telescope setup.

require('telescope').setup{
    file_ignore_patterns = {"dist", "node_modules", ".git"},
    shorten_path = true,
    color_devicons = true
}

I already tried using wildcards on the file patterns like **/node_modules, but I'm not sure which pattern might work.

0

There are 0 best solutions below