I added a line of code, and then format the file; it's applying formatting badly, which ends up malforming my code. See this video:
{
"lsp": {
"tsgo": {
"settings": {
"package_version": "7.0.0-dev.20260423.1"
}
},
"oxlint": {
"initialization_options": {
"settings": {
"configPath": "./oxlint.config.ts",
"disableNestedConfig": false,
"fixKind": "safe_fix",
"run": "onType",
"unusedDisableDirectives": "deny"
}
}
},
"oxfmt": {
"initialization_options": {
"settings": {
"fmt.configPath": "./oxfmtrc.json",
"run": "onSave"
}
}
}
},
"format_on_save": "on",
"prettier": {
"allowed": false
},
"formatter": [{ "language_server": { "name": "oxfmt" } }],
"languages": {
"TypeScript": {
"language_servers": ["tsgo", "oxlint", "oxfmt"],
"format_on_save": "on",
"prettier": {
"allowed": false
},
"formatter": [
{
"language_server": {
"name": "oxfmt"
}
}
]
},
},
}
Problem
I added a line of code, and then format the file; it's applying formatting badly, which ends up malforming my code. See this video:
https://www.loom.com/share/10fe8ae1db2e4c14aa8cc1ab792ec885
This does not happen when I run
oxfmtfrom the command line, nor in Cursor. Just in Zed.Zed config: