Sometimes when I am doing code analysis, I open multiple related projects (a client and a server, a library and a caller, etc.) in a single vim session, using :cd/:lcd/:tcd to have different tabs or windows in the location of each project. However, the LSP server is run only once. If I am coding Java, for example, and have windows in two different working directories A and B, then the LSP is run in directory A and calls to directory B do not work.
If I run :LspStopServer and load directory B, then buffers in directory A no longer work with LSP.
Is there a way to maintain different instances for each working directory and direct calls accordingly?
Sometimes when I am doing code analysis, I open multiple related projects (a client and a server, a library and a caller, etc.) in a single vim session, using
:cd/:lcd/:tcdto have different tabs or windows in the location of each project. However, the LSP server is run only once. If I am coding Java, for example, and have windows in two different working directories A and B, then the LSP is run in directory A and calls to directory B do not work.If I run
:LspStopServerand load directory B, then buffers in directory A no longer work with LSP.Is there a way to maintain different instances for each working directory and direct calls accordingly?