Browse Source

disable lsp on non-git folders

Dax Raad 7 months ago
parent
commit
85d95f0f2b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/opencode/src/lsp/index.ts

+ 1 - 0
packages/opencode/src/lsp/index.ts

@@ -57,6 +57,7 @@ export namespace LSP {
     async (app) => {
       log.info("initializing")
       const clients: LSPClient.Info[] = []
+      if (!app.git) return { clients }
 
       for (const server of Object.values(LSPServer)) {
         const roots = await server.roots(app)