Skip to content

LSP Per Working Directory #1681

Description

@michaeljmcd

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions