From 9217c3c4a8534fcd5bb312dcfffd473f3545c32a Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Sun, 9 Feb 2025 14:59:52 -0800 Subject: [PATCH] Add basic Zed workspace configs --- .zed/settings.json | 64 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 .zed/settings.json diff --git a/.zed/settings.json b/.zed/settings.json new file mode 100644 index 0000000000..c5332294f7 --- /dev/null +++ b/.zed/settings.json @@ -0,0 +1,64 @@ +{ + "format_on_save": "on", + "languages": { + "JavaScript": { + "formatter": { + "external": { + "command": "./node_modules/.bin/prettier", + "arguments": ["--stdin-filepath", "{buffer_path}"] + } + } + }, + "JSON": { + "formatter": { + "external": { + "command": "./node_modules/.bin/prettier", + "arguments": ["--stdin-filepath", "{buffer_path}"] + } + } + }, + "TypeScript": { + "formatter": { + "external": { + "command": "./node_modules/.bin/prettier", + "arguments": ["--stdin-filepath", "{buffer_path}"] + } + } + }, + "CSS": { + "formatter": { + "external": { + "command": "./node_modules/.bin/prettier", + "arguments": ["--stdin-filepath", "{buffer_path}"] + } + } + }, + "SCSS": { + "formatter": { + "external": { + "command": "./node_modules/.bin/prettier", + "arguments": ["--stdin-filepath", "{buffer_path}"] + } + } + }, + "YAML": { + "formatter": { + "external": { + "command": "./node_modules/.bin/prettier", + "arguments": ["--stdin-filepath", "{buffer_path}"] + } + } + } + }, + "lsp": { + "eslint": { + "settings": { + "codeActionOnSave": { + "rules": ["import/order"] + }, + "nodePath": "./node_modules/.bin", + "language_ids": ["typescript", "javascript", "typescriptreact", "javascriptreact"] + } + } + } +}