https://github.com/zed-extensions/nu
Zed support for the Nu language (https://www.nushell.sh)
https://github.com/zed-extensions/nu
Last synced: 18 days 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
- Created: 2024-02-13T21:16:02.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-17T13:33:44.000Z (about 1 month ago)
- Last Synced: 2025-03-26T23:52:16.561Z (25 days ago)
- Language: Scheme
- Homepage:
- Size: 26.4 KB
- Stars: 10
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"]
```