harper_zed icon indicating copy to clipboard operation
harper_zed copied to clipboard

How to use?

Open Yevgnen opened this issue 11 months ago • 8 comments

Do I need any setup for it? I don't see any lints on a Python file, thought it does work on a Rust file.

Python: Image

Rust:

Image

Yevgnen avatar Jan 22 '25 03:01 Yevgnen

Hi, that's strange. For me it does work. MacOS, latest version of Zed, reinstalled the extension from fresh without any configuration:

Image

Do you have any special configuration on your end that you are aware of? You can also try checking out Zed's logs (Open command palate > zed: open log)

Stef16Robbe avatar Jan 22 '25 08:01 Stef16Robbe

Could it be some kind of conflict with a Python LSP?

hippietrail avatar Jan 22 '25 08:01 hippietrail

I don't see anything logs about harper and I have the following config for Python.

  "languages": {
    "Python": {
      "language_servers": ["basedpyright", "ruff", "!pyright"],
      "format_on_save": "on",
      "formatter": [
        {
          "code_actions": {
            "source.organizeImports.ruff": true,
            "source.fixAll.ruff": true
          }
        },
        {
          "language_server": {
            "name": "ruff"
          }
        }
      ]
    }
  }

Yevgnen avatar Jan 22 '25 09:01 Yevgnen

Interesting, I have exactly the same settings 😄

Stef16Robbe avatar Jan 22 '25 10:01 Stef16Robbe

It only works if I remove the whole "Python" values. Remove items from "language_servers" or tuning the items to be enabled or disabled also dose not work.

Yevgnen avatar Jan 24 '25 02:01 Yevgnen

I had the same problem, harper-ls should be included to the list of language servers.

rushter avatar May 11 '25 14:05 rushter

Also struggling to get this working with latex. Removing both the languages and lsp keys in the settings did not help. For rust files it works flawlessly. Adding harper-ls does not help, unfortunately. Here's my settings file:

{
  "features": {
    "edit_prediction_provider": "zed"
  },
  "agent": {
    "always_allow_tool_actions": true,
    "default_model": {
      "provider": "zed.dev",
      "model": "claude-sonnet-4"
    }
  },
  "ui_font_size": 16,
  "buffer_font_size": 13,
  "theme": {
    "mode": "system",
    "light": "One Light",
    "dark": "Xcode Default Darker"
  },
  "languages": {
    "LaTeX": {
      "language_servers": ["harper-ls"],
      "soft_wrap": "editor_width"
    },
    "Markdown": {
      "language_servers": ["harper-ls"],
      "soft_wrap": "editor_width"
    }
  },
  "lsp": {
    "pyright": {
      "settings": {
        "python.analysis": {
          "diagnosticMode": "workspace"
        },
        "python": {
          "pythonPath": "venv/bin/python"
        }
      }
    }
  },
  "minimap": {
    "show": "always"
  }
}

lbrndnr avatar Jul 14 '25 08:07 lbrndnr

Oh turns out it doesn't support latex

lbrndnr avatar Jul 23 '25 08:07 lbrndnr