From 9ca2068b3441b521d2ac190b8ad934b227f0cb2f Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Fri, 19 Jun 2026 11:34:54 +0200 Subject: [PATCH] chore: add Zed format-on-save config using oxfmt --- .zed/settings.json | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .zed/settings.json diff --git a/.zed/settings.json b/.zed/settings.json new file mode 100644 index 0000000..861e067 --- /dev/null +++ b/.zed/settings.json @@ -0,0 +1,40 @@ +{ + "languages": { + "TypeScript": { + "format_on_save": "on", + "formatter": { + "external": { + "command": "./node_modules/.bin/oxfmt", + "arguments": ["--stdin-filepath", "{buffer_path}"] + } + } + }, + "TSX": { + "format_on_save": "on", + "formatter": { + "external": { + "command": "./node_modules/.bin/oxfmt", + "arguments": ["--stdin-filepath", "{buffer_path}"] + } + } + }, + "JavaScript": { + "format_on_save": "on", + "formatter": { + "external": { + "command": "./node_modules/.bin/oxfmt", + "arguments": ["--stdin-filepath", "{buffer_path}"] + } + } + }, + "Vue.js": { + "format_on_save": "on", + "formatter": { + "external": { + "command": "./node_modules/.bin/oxfmt", + "arguments": ["--stdin-filepath", "{buffer_path}"] + } + } + } + } +}