natecraddock / workspaces.nvim

a simple plugin to manage workspace directories in neovim
MIT License
309 stars 15 forks source link

Use with monorepos #40

Open snoblenet opened 2 months ago

snoblenet commented 2 months ago

I have:

/traditional_repo
  file_1
/mono_repo
  file_2
  /packages
    /package
      file_3

Is it practical to configure workspaces.nvim so that:

natecraddock commented 1 month ago

You could register traditional_repo mono_repo and package as separate workspaces with this plugin just fine. I'm not sure if that is what you are asking about though!

snoblenet commented 1 month ago

It is. But related to my other issue, this is something I'd want to control manually.

Also, by default, would file_3 then belong to two workspaces? (mono_repo and package)

natecraddock commented 1 month ago

Yes file_3 would be in two separate workspaces. All a workspace does is allow you to set the working directory of nvim