Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

zed-extensions/nu

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zed Nu

This extension adds support for the Nu 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.

{
  "lsp": {
    "nu": {
      "binary": {
        "path": "nu",
        "arguments": ["--config", "~/.config/nushell/lsp.nu", "--lsp"]
      }
    }
  }
}

Example of Minimal lsp.nu

# 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<string>|
  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"]

About

Zed support for the Nu language (https://www.nushell.sh)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 9

Morty Proxy This is a proxified and sanitized view of the page, visit original site.