-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsettings.json
162 lines (162 loc) · 3.92 KB
/
settings.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run the `open default settings` command
// from the command palette or from `Zed` application menu.
{
"icon_theme": "Catppuccin Mocha",
"features": {
"edit_prediction_provider": "zed"
},
"base_keymap": "VSCode",
"theme": "Dracula",
"ui_font_size": 17,
"buffer_font_size": 18.5,
// Finder model width
"file_finder": {
"modal_width": "medium"
},
// NOTE: Change the font family to your preference
"buffer_font_family": "OperatorMonoLig Nerd Font",
// Vim mode settings
"vim_mode": true,
"vim": {
"enable_vim_sneak": true
},
// use relative line numbers
"relative_line_numbers": true,
"tab_bar": {
"show": true
},
"scrollbar": {
"show": "never"
},
// Only show error on tab
"tabs": {
"show_diagnostics": "errors"
},
// Indentation, rainbow indentation
"indent_guides": {
"enabled": true,
"coloring": "indent_aware"
},
// NOTE: Zen mode, refer https://github.com/zed-industries/zed/issues/4382 when it's resolved
"centered_layout": {
"left_padding": 0.15,
"right_padding": 0.15
},
// Use Copilot Chat AI as default
"assistant": {
"default_model": {
"provider": "copilot_chat",
"model": "claude-3-5-sonnet"
},
"version": "2"
},
// Uncomment below to use local AI with Ollama, refer https://zed.dev/docs/language-model-integration?highlight=ollama#using-ollama-on-macos
// "assistant": {
// "default_model": {
// "provider": "ollama",
// "model": "llama3.1:latest"
// },
// "version": "2",
// "provider": null
// },
"language_models": {
"ollama": {
"api_url": "http://localhost:11434"
}
},
// Inlay hints preconfigured by Zed: Go, Rust, Typescript and Svelte
"inlay_hints": {
"enabled": true
},
// LSP
"lsp": {
"tailwindcss-language-server": {
"settings": {
"classAttributes": ["class", "className", "ngClass", "styles"]
}
}
},
"languages": {
// Refer https://zed.dev/docs/languages/javascript and https://zed.dev/docs/languages/typescript for more info
"TypeScript": {
// Refer https://github.com/jellydn/ts-inlay-hints for how to setup for Neovim and VSCode
"inlay_hints": {
"enabled": true,
"show_parameter_hints": false,
"show_other_hints": true,
"show_type_hints": true
}
},
"Python": {
"format_on_save": { "language_server": { "name": "ruff" } },
"formatter": { "language_server": { "name": "ruff" } },
"language_servers": ["pyright", "ruff"]
}
},
// Use zed commit editor
"terminal": {
"font_family": "FiraCode Nerd Font Mono",
"env": {
"EDITOR": "zed --wait"
}
},
// File syntax highlighting
"file_types": {
"Dockerfile": ["Dockerfile", "Dockerfile.*"],
"JSON": ["json", "jsonc", "*.code-snippets"]
},
// File scan exclusions, hide on the file explorer and search
"file_scan_exclusions": [
"**/.git",
"**/.svn",
"**/.hg",
"**/CVS",
"**/.DS_Store",
"**/Thumbs.db",
"**/.classpath",
"**/.settings",
// above is default from Zed
"**/out",
"**/dist",
"**/.husky",
"**/.turbo",
"**/.vscode-test",
"**/.vscode",
"**/.next",
"**/.storybook",
"**/.tap",
"**/.nyc_output",
"**/report",
"**/node_modules"
],
// Turn off telemetry
"telemetry": {
"diagnostics": false,
"metrics": false
},
// Move all panel to the right
"project_panel": {
"button": true,
"dock": "right",
"git_status": true
},
"outline_panel": {
"dock": "right"
},
"collaboration_panel": {
"dock": "left"
},
// Move some unnecessary panels to the left
"notification_panel": {
"dock": "left"
},
"chat_panel": {
"dock": "left"
}
}