- Topiary: tree-sitter based uniform formatter
- This repo contains:
- languages.ncl: configuration that enables nushell
- nushell.scm: tree-sitter query DSL that defines the behavior of formatter for nushell
- stand-alone tests written in nushell
- install latest topiary-cli
- clone this repo to
$env.XDG_CONFIG_HOME/topiary
- set environment variables
$env.TOPIARY_CONFIG_FILE = ($env.XDG_CONFIG_HOME | path join topiary languages.ncl)
$env.TOPIARY_LANGUAGE_DIR = ($env.XDG_CONFIG_HOME | path join topiary languages)
topiary format script.nu