54 lines
1.4 KiB
JSON
54 lines
1.4 KiB
JSON
// 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 `zed: open default settings` from the
|
|
// command palette (cmd-shift-p / ctrl-shift-p)
|
|
//
|
|
// 需要安装的依赖有
|
|
// 1.Nodejs
|
|
// 2.jsonnet-language-server
|
|
// 3.clangd
|
|
{
|
|
"tab_size": 4,
|
|
"vim_mode": false,
|
|
"buffer_font_family": "Maple Mono NF CN",
|
|
"ui_font_size": 15.0,
|
|
"buffer_font_size": 13.0,
|
|
"theme": {
|
|
"mode": "system",
|
|
"light": "One Light",
|
|
"dark": "One Dark",
|
|
},
|
|
"file_types": {
|
|
"Jsonnet": ["cfg"],
|
|
},
|
|
"lsp": {
|
|
"clangd": {
|
|
"binary": {
|
|
"arguments": [
|
|
"--header-insertion=never",
|
|
"--all-scopes-completion",
|
|
"--completion-style=detailed",
|
|
"--clang-tidy",
|
|
"-j=4",
|
|
"--pch-storage=memory",
|
|
"--compile-commands-dir=build",
|
|
"--background-index",
|
|
"--ranking-model=heuristics",
|
|
"--function-arg-placeholders=false",
|
|
],
|
|
},
|
|
},
|
|
"jsonnet-language-server": {
|
|
"settings": {
|
|
"formatting": {
|
|
"indent": 4,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|