Skip to content

LSP config in local directory not respected #14314

Closed

Description

@imehtamav

Description

The project-local config looks like this:

{
  "$schema": "https://opencode.ai/config.json",
  "lsp": {
    "ty": {
      "command": [
        "uv",
        "run",
        "ty",
        "server"
      ],
      "extensions": [
        ".py",
        ".pyi"
      ]
    },
    "pyright": {
      "disabled": true
    }
  }
}

But when OpenCode reads a Python file, it activates the pyright LSP.

Plugins

"opencode-anthropic-auth@latest"

OpenCode version

1.2.6

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Windows Terminal

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Feb 19, 2026
  2. OpeOginni commented on Feb 19, 2026

    @OpeOginni
    Contributor

    If you want to make use of TY, just set this env OPENCODE_EXPERIMENTAL_LSP_TY to true and you get to use ty default

  3. ishaan-mehta commented on Mar 18, 2026

    @ishaan-mehta

    Hi @nexxeln, shouldn't this config work regardless of the experimental flag?

  4. OpeOginni commented on Mar 18, 2026

    @OpeOginni
    Contributor

    @ishaan-mehta ill check that out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions