You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[NeoVim](https://github.com/sbdchd/neoformat) - Install **neoformat** in your neovim setup then add the nim formating option with **nph** with this option in init.vim `let g:neoformat_enabled_nim = ['nph']`
53
-
*[Zed Editor](https://github.com/foxoman/zed-nim) - Use this in your editor settings
54
-
```
55
-
"languages": {
56
-
"Nim": {
57
-
"formatter": {
58
-
"external": {
59
-
"command": "nph",
60
-
"arguments": ["-"]
61
-
}
62
-
}
63
-
}
64
-
}
65
-
```
57
+
Editor integrations are described [in the manual](https://arnetheduck.github.io/nph/installation.html#editor-integration).
*[VSCode](https://marketplace.visualstudio.com/items?itemName=NimLang.nimlang) (`ext install NimLang.nimlang`) extension via [nimlangserver](https://github.com/nim-lang/langserver/) that supports `nph` out of the box
34
+
*[NeoVim](https://github.com/sbdchd/neoformat) - Install **neoformat** in your neovim setup then add the nim formating option with **nph** with this option in init.vim `let g:neoformat_enabled_nim = ['nph']`
35
+
*[Zed Editor](https://github.com/foxoman/zed-nim) - Use this in your editor settings
36
+
```
37
+
"languages": {
38
+
"Nim": {
39
+
"formatter": {
40
+
"external": {
41
+
"command": "nph",
42
+
"arguments": ["-"]
43
+
}
44
+
}
45
+
}
46
+
}
47
+
```
48
+
*[vscode-nph](https://marketplace.visualstudio.com/items?itemName=arnetheduck.vscode-nph) (`ext install arnetheduck.vscode-nph`) for a formatting-only option for the official Nim extension.
Copy file name to clipboardexpand all lines: vscode-nph/README.md
+2
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
Format [Nim](https://nim-lang.org) code using [`nph`](https://github.com/arnetheduck/nph).
4
4
5
+
Full-featured `Nim` support including formatting via `nph` is available from the [official Nim extension](https://marketplace.visualstudio.com/items?itemName=NimLang.nimlang) - if you're using it, `vscode-nph` is no longer needed.
6
+
5
7
## Features
6
8
7
9
Enables formatting of Nim code via `Format document` from the command palette as well as format-on-save if enabled in settings.
0 commit comments