Skip to content

eli-yip/just-formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Justfile Formatter

just-formatter is a simple wrapper for just. Since just --dump does not support reading files from standard input, unexpected issues may arise when using it as a formatter for editors like Helix Editor.

Installation

Run the following command:

cargo install just-formatter

Usage

Ensure that just is installed.

Command Line

cat <justfile> | just-formatter

Using in Helix

Example languages.toml:

[[language]]
name = "just"
auto-format = true
formatter = { command = "just-formatter" }

Skip just check to accelarate speed

Use --skip-check/-s flag. An example helix config:

[[language]]
name = "just"
auto-format = true
formatter = { command = "just-formatter", args = ["--skip-check"] }

About

Format justfile from stdin to stdout.

Resources

Stars

Watchers

Forks

Languages