Env:zed配置添加。
This commit is contained in:
15
.zed/keymap.json
Normal file
15
.zed/keymap.json
Normal file
@@ -0,0 +1,15 @@
|
||||
// Zed keymap
|
||||
//
|
||||
// For information on binding keys, see the Zed
|
||||
// documentation: https://zed.dev/docs/key-bindings
|
||||
//
|
||||
// To see the default key bindings run `zed: open default keymap`
|
||||
// from the command palette.
|
||||
[
|
||||
{
|
||||
"context": "Editor",
|
||||
"bindings": {
|
||||
"alt-g": "editor::GoToDefinition",
|
||||
},
|
||||
},
|
||||
]
|
||||
53
.zed/settings.json
Normal file
53
.zed/settings.json
Normal file
@@ -0,0 +1,53 @@
|
||||
// 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,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
29
.zed/tasks.json
Normal file
29
.zed/tasks.json
Normal file
@@ -0,0 +1,29 @@
|
||||
[
|
||||
{
|
||||
"label": "CmakeConfig",
|
||||
"command": "cmd",
|
||||
"env": {
|
||||
"VS2026ENV": "\"C:\\Program Files\\Microsoft Visual Studio\\18\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat\"",
|
||||
},
|
||||
"args": [
|
||||
"/c",
|
||||
"$VS2026ENV && cmake -Bbuild -G Ninja -S . -DCOMPILE_GUI=ON -DCMAKE_BUILD_TYPE=Debug",
|
||||
],
|
||||
"cwd": "$ZED_WORKTREE_ROOT",
|
||||
"use_new_terminal": false,
|
||||
"show_command": true,
|
||||
"show_summary": true,
|
||||
},
|
||||
{
|
||||
"label": "CmakeBuild",
|
||||
"command": "cmd",
|
||||
"env": {
|
||||
"VS2026ENV": "\"C:\\Program Files\\Microsoft Visual Studio\\18\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat\"",
|
||||
},
|
||||
"args": ["/c", "$VS2026ENV && cmake --build build --config Debug"],
|
||||
"cwd": "$ZED_WORKTREE_ROOT",
|
||||
"use_new_terminal": false,
|
||||
"show_command": true,
|
||||
"show_summary": true,
|
||||
},
|
||||
]
|
||||
Reference in New Issue
Block a user