Nim
Nim support
How to install
With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.
You can also open the Extensions panel in the app and search for Nim. The extension's id is nim.
Don't have Forge Super yet? Download it here.
README
From the extension's repository, written by its authors and not by Mentenaz. See the source.
zed-nim
Nim extension for Zed Editor
- Tree-Sitter Support: https://github.com/alaviss/tree-sitter-nim
- Language Server Support: https://github.com/nim-lang/langserver
Install
Prerequisites
Make sure to install nimlangserver before installing this extension
Editor
Nim support has been officially integrated into the Zed editor through this extension. To enable it, search for "Nim" in the Zed extensions and install it.
For Dev / Manual install
- Download the release source
- Extract it into a folder
- Go to the extension page in Zed and click on Install Dev Extension
- Wait for a time till it builds and you will see nim extension installed
Screenshot
Inlay hints
Tasks
Support for current file run, nimble run, nimble build, nimble test
Lsp Error
Other supported features:
- Go to definition and type definition
- Rename
- Hover
- Outline
Formating Configuration
To use nph as a formatter, add this to your settings
"languages": {
"Nim": {
"formatter": {
"external": {
"command": "nph",
"arguments": ["-"]
}
}
}
}
Language Server Configuration
To change settings of the nimlangserver add the following to your settings. List of options can be found in nimlangserver's description.
"lsp": {
"nim": {
"settings": {
// Add your settings here:
"timeout": 10000,
"projectMapping": [
{
"projectFile": "tests/all\\.nim",
"fileRegex": "tests/.*\\.nim"
}
],
"maxNimsuggestProcesses": 1,
"notificationVerbosity": "warning"
}
}
}
To-Do List for Project:
- Fix Project Config options
- Add runnable functionality
- Implement Debug Task
- Develop Macros
- Create code snippets