Conditionally register source based on root_dir #517
-
With the recent changes to how conditions work, I'd like to ask for the best way to conditionally register a source. To make this more concrete, my case is the following:
If I open any file inside this monorepo, my LSPs and And for
But if I'm outside this project I don't want to register So what would be the best way to conditionally register sources? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I was thinking about cases like this. I think the right thing to do is to check whether conditional sources should register when first entering a named buffer (not on first run). We'd still have project context and it would solve cases like yours, since the source would never get registered in the first place. I'll see if I can put something together. |
Beta Was this translation helpful? Give feedback.
I was thinking about cases like this. I think the right thing to do is to check whether conditional sources should register when first entering a named buffer (not on first run). We'd still have project context and it would solve cases like yours, since the source would never get registered in the first place. I'll see if I can put something together.