Skip to content
File

Blob: .zed/settings.json

json60 lines
1// Folder-specific settings
2//
3// For a full list of overridable settings, and general information on folder-specific settings,
4// see the documentation: https://zed.dev/docs/configuring-zed#settings-files
5{
6 "languages": {
7 "C++": {
8 "formatter": {
9 "external": {
10 "command": "bazel-bin/build/deps/formatters/clang-format",
11 "arguments": ["-i", "{buffer_path}"]
12 }
13 }
14 },
15 "Python": {
16 "formatter": {
17 "external": {
18 "command": "bazel-bin/build/deps/formatters/ruff",
19 "arguments": ["format", "--stdin-filename", "{buffer_path}"]
20 }
21 }
22 },
23 "Starlark": {
24 "formatter": {
25 "external": {
26 "command": "bazel-bin/build/deps/formatters/buildifier",
27 "arguments": ["--lint=fix", "--path", "{buffer_path}"]
28 }
29 }
30 }
31 },
32 "file_types": {
33 "Cap'n Proto": ["*.wd-test"],
34 "Starlark": ["BUILD.*"]
35 },
36 "lsp": {
37 "clangd": {
38 "binary": {
39 "arguments": [
40 "--background-index",
41 "--header-insertion=never",
42 "--query-driver=**",
43 "--clang-tidy"
44 ]
45 }
46 },
47 "rust-analyzer": {
48 "initialization_options": {
49 "workspace": {
50 "discoverConfig": {
51 "command": ["just", "_rust-analyzer"],
52 "progressLabel": "generating rust analyzer config",
53 "filesToWatch": ["BUILD.bazel"]
54 }
55 }
56 }
57 }
58 }
59}