{"id":18113451,"url":"https://github.com/kachick/dprint-plugin-typstyle","last_synced_at":"2025-06-29T10:36:18.467Z","repository":{"id":258894548,"uuid":"861559636","full_name":"kachick/dprint-plugin-typstyle","owner":"kachick","description":"Typst formatter as a dprint WASM plugin","archived":false,"fork":false,"pushed_at":"2025-02-04T00:19:22.000Z","size":151,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T01:22:58.968Z","etag":null,"topics":["dprint-plugin","typst"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kachick.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-23T06:09:58.000Z","updated_at":"2025-02-04T00:19:23.000Z","dependencies_parsed_at":"2024-11-18T19:38:02.044Z","dependency_job_id":"9e8cdcae-bf95-4910-a9b3-fcae2aed11f5","html_url":"https://github.com/kachick/dprint-plugin-typstyle","commit_stats":{"total_commits":58,"total_committers":4,"mean_commits":14.5,"dds":0.5172413793103448,"last_synced_commit":"1dfbaadee76526629e9c9a5d0c89673c0a9e8476"},"previous_names":["kachick/dprint-plugin-typstyle"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kachick%2Fdprint-plugin-typstyle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kachick%2Fdprint-plugin-typstyle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kachick%2Fdprint-plugin-typstyle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kachick%2Fdprint-plugin-typstyle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kachick","download_url":"https://codeload.github.com/kachick/dprint-plugin-typstyle/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238487339,"owners_count":19480571,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dprint-plugin","typst"],"created_at":"2024-11-01T02:08:19.873Z","updated_at":"2025-06-29T10:36:18.456Z","avatar_url":"https://github.com/kachick.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dprint-plugin-typstyle\n\n[![CI - Nix Status](https://github.com/kachick/dprint-plugin-typstyle/actions/workflows/nix.yml/badge.svg?branch=main)](https://github.com/kachick/dprint-plugin-typstyle/actions/workflows/nix.yml?query=branch%3Amain+)\n\n[Typst](https://github.com/typst/typst) formatter as a [dprint](https://github.com/dprint/dprint) WASM plugin, powered by [typstyle](https://github.com/Enter-tainer/typstyle)\n\n## Installation\n\n```bash\ndprint config add 'kachick/typstyle'\n```\n\nThis plugin delegates the formatter feature to the upstream typstyle-core [crate](https://crates.io/crates/typstyle).\n\n## Configuration example\n\nMinimum\n\n```json\n{\n  \"plugins\": [\n    \"https://plugins.dprint.dev/kachick/typstyle-0.3.5.wasm\"\n  ]\n}\n```\n\nCustomize if necessary\n\n```json\n{\n  \"typst\": {\n    \"indentWidth\": 3,\n    \"lineWidth\": 78,\n    \"blankLinesUpperBound\": 5\n  },\n  \"plugins\": [\n    \"https://plugins.dprint.dev/kachick/typstyle-0.3.5.wasm\"\n  ]\n}\n```\n\n## Order of determines the values\n\n1. typst section in dprint.json\n1. [global config in dprint.json](https://dprint.dev/config/#global-configuration)\n1. [default values in typstyle-core](https://github.com/Enter-tainer/typstyle/blob/v0.13.5/crates/typstyle-core/src/config.rs#L18-L28)\n\n## Relationships of the option names\n\n| dprint-plugin-typstyle | dprint global config | typstyle-core           | typstyle CLI                      |\n| ---------------------- | -------------------- | ----------------------- | --------------------------------- |\n| lineWidth              | lineWidth            | max_width               | column                            |\n| indentWidth            | indentWidth          | tab_spaces              | tab-width                         |\n| blankLinesUpperBound   | `none`               | blank_lines_upper_bound | `none`                            |\n| reorderImportItems     | `none`               | reorder_import_items    | no-reorder-import-items # disable |\n| wrapText               | `none`               | wrap_text               | wrap-text                         |\n\n## Versioning\n\nVersions are updated based on changes in dprint and typestyle-core, and do not correspond to upstream version numbers.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkachick%2Fdprint-plugin-typstyle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkachick%2Fdprint-plugin-typstyle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkachick%2Fdprint-plugin-typstyle/lists"}