1---
2title: Nim
3description: "Configure Nim language support in Zed, including language servers, formatting, and debugging."
4---
5
6# Nim
7
8Nim language support in Zed is provided by the community-maintained [Nim extension](https://github.com/foxoman/zed-nim).
9Report issues to: [https://github.com/foxoman/zed-nim/issues](https://github.com/foxoman/zed-nim/issues)
10
11- Tree-sitter: [alaviss/tree-sitter-nim](https://github.com/alaviss/tree-sitter-nim)
12- Language Server: [nim-lang/langserver](https://github.com/nim-lang/langserver)
13
14## Formatting
15
16To 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).
17
18Configure formatting in Settings ({#kb zed::OpenSettings}) under Languages > Nim, or add to your settings file:
19
20```json [settings]
21 "languages": {
22 "Nim": {
23 "formatter": {
24 "external": {
25 "command": "nph",
26 "arguments": ["-"]
27 }
28 }
29 }
30 }
31```