Thanks to visit codestin.com
Credit goes to github.com

Skip to content

constneo/vscode-nushell-format

Repository files navigation

Format Nushell With TopiaryCLI

This extension only supports vscode desktop

Topiary

https://github.com/tweag/topiary

# Add topiary.exe to PATH
$env.TOPIARY_HOME = "e:/dev/topiary/bin"

# topiary.exe in $env.TOPIARY_HOME
path add $env.TOPIARY_HOME

Clone the TopiaryCLI to the local

cd e:/config
mkdir topiary
git clone https://github.com/blindFS/topiary-nushell topiary

Priority Level: vscode plugin config > environment

Add TOPIARY_CONFIG_FILE and TOPIARY_LANGUAGE_DIR to environment.

$env.TOPIARY_CONFIG_FILE  = "e:/config/topiary/languages.ncl"
$env.TOPIARY_LANGUAGE_DIR  ="e:/config/topiary/languages"

Or add config to .vscode/settings.json

Like that:

{
  "[nushell]": {
    "editor.defaultFormatter": "constneo.vscode-nushell-format"
  },
  "editor.formatOnSave": true,
  "vscode-nushell-format.TOPIARY_CONFIG_FILE": "e:/config/topiary/languages.ncl",
  "vscode-nushell-format.TOPIARY_LANGUAGE_DIR": "e:/config/topiary/languages"
}

Build

npm install

npm install -g @vscode/vsce

vsce package --no-dependencies

Thanks

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •