Home Explore Blog CI



zed

1st chunk of `docs/src/languages/nim.md`
07b076ff95160393e7d80a3497b6309a3d7d423bb009f67d0000000100000331
# Nim

Nim language support in Zed is provided by the community-maintained [Nim extension](https://github.com/foxoman/zed-nim).
Report issues to: [https://github.com/foxoman/zed-nim/issues](https://github.com/foxoman/zed-nim/issues)

- Tree-sitter: [alaviss/tree-sitter-nim](https://github.com/alaviss/tree-sitter-nim)
- Language Server: [nim-lang/langserver](https://github.com/nim-lang/langserver)

## Formatting

To use [arnetheduck/nph](https://github.com/arnetheduck/nph) as a formatter, follow the [nph installation instructions](https://github.com/arnetheduck/nph?tab=readme-ov-file#installation) and add this to your Zed `settings.json`:

```json
  "languages": {
    "Nim": {
      "formatter": {
        "external": {
          "command": "nph",
          "arguments": ["-"]
        }
      }
    }
  }
```

Title: Nim Language Support in Zed
Summary
Zed supports the Nim language via a community-maintained extension. This section provides links to the relevant repositories for the Tree-sitter parser and Language Server. It also details how to configure Zed to use `nph` as a formatter by providing the necessary settings to add to the `settings.json` file.