https://github.com/zed-extensions/nu
Zed support for the Nu language (https://www.nushell.sh)
https://github.com/zed-extensions/nu
Last synced: about 1 month ago
JSON representation
Zed support for the Nu language (https://www.nushell.sh)
- Host: GitHub
- URL: https://github.com/zed-extensions/nu
- Owner: zed-extensions
- License: apache-2.0
- Created: 2024-02-13T21:16:02.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-12-29T17:27:02.000Z (3 months ago)
- Last Synced: 2026-02-01T14:26:45.526Z (about 1 month ago)
- Language: Tree-sitter Query
- Homepage:
- Size: 45.9 KB
- Stars: 19
- Watchers: 5
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-nu - zed
README
# Zed Nu
This extension adds support for the [Nu](https://github.com/nushell/nushell) language.
## Override Default Configuration (Optional)
You can minimize the configuration autoloaded when the server starts,
which may improve performance as complicated Nushell configurations can slow down the language server.
```json
{
"lsp": {
"nu": {
"binary": {
"path": "nu",
"arguments": ["--config", "~/.config/nushell/lsp.nu", "--lsp"]
}
}
}
}
```
### Example of Minimal lsp.nu
```nushell
# Configure PATH to search for external command completions
$env.path = $env.path
| split row (char esep)
| append ($env.HOME | path join ".cargo" "bin")
| uniq
# Set up external completer (requires carapace)
$env.CARAPACE_LENIENT = 1
$env.CARAPACE_BRIDGES = 'zsh'
$env.config.completions.external.completer = {|spans: list|
carapace $spans.0 nushell ...$spans
| from json
| if ($in | default [] | where value =~ '^-.*ERR$' | is-empty) { $in } else { null }
}
# Define extra library directories to load definitions from
const NU_LIB_DIRS = ["some/extra/lib"]
```