@kachick/dprint-plugin-typstyle
v0.5.2
Published
dprint plugin for Typst formatting using typstyle
Downloads
948
Maintainers
Readme
dprint-plugin-typstyle
Typst formatter as a dprint WASM plugin, powered by typstyle
Installation
dprint add 'kachick/typstyle'This plugin delegates the formatter feature to the upstream typstyle-core crate.
Configuration example
Works with no configuration by default.
{
"typst": {}
}Customize if needed:
{
"typst": {
"wrapMode": "fill" // "none" by default
}
}Configuration precedence
- typst section in dprint.json
- global config in dprint.json
- default values in typstyle-core
Option name mappings
| dprint-plugin-typstyle | dprint global config | typstyle-core | typstyle CLI |
| ---------------------- | -------------------- | ----------------------- | ------------------------------------ |
| lineWidth | lineWidth | max_width | line-width |
| indentWidth | indentWidth | tab_spaces | indent-width |
| blankLinesUpperBound | none | blank_lines_upper_bound | none |
| reorderImportItems | none | reorder_import_items | no-reorder-import-items # disable |
| wrapMode | none | wrap_mode | wrap-text (none/fill/sentence) |
Versioning
Versions are updated based on changes in dprint and typstyle-core, and do not correspond to upstream version numbers.
