Skip to content

Zed, cannot format document #52

@mismorgano

Description

@mismorgano

Following the instructions, the tinymist configuration (based on Neovim) for formatting should be:

{
  "lsp": {
    "tinymist": {
      "settings": {
        "formatterMode": "typstyle",
        "formatterPrintWidth": 80,
      },
    },
  },
}

It was working before but then I realized that zed is not properly formatting my document.
I check my settings.json, change from "typstyle" to "typstfmt", then save it and it show a message about prettier so I force zed to use the language server based on this so my new settings.json look like:

{
  "formatter": "language_server",
  "lsp": {
    "tinymist": {
      "settings": {
        "formatterMode": "typstyle",
        "formatterPrintWidth": 80,
      },
    },
  },
}

but anyways it's still not working., any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions