From 55c4bf6a8fd27315e97a8cbb8853aad095026ae1 Mon Sep 17 00:00:00 2001 From: taynpg Date: Mon, 29 Dec 2025 21:43:51 +0800 Subject: [PATCH] =?UTF-8?q?Zed=E7=8E=AF=E5=A2=83=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .zed/keymap.json | 7 ------- .zed/settings.json | 23 ----------------------- .zed/tasks.json | 12 ++++++------ 3 files changed, 6 insertions(+), 36 deletions(-) diff --git a/.zed/keymap.json b/.zed/keymap.json index cb91520..bc550ff 100644 --- a/.zed/keymap.json +++ b/.zed/keymap.json @@ -1,10 +1,3 @@ -// 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", diff --git a/.zed/settings.json b/.zed/settings.json index 431c442..6bc4716 100644 --- a/.zed/settings.json +++ b/.zed/settings.json @@ -1,16 +1,3 @@ -// 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, @@ -22,9 +9,6 @@ "light": "One Light", "dark": "One Dark", }, - "file_types": { - "Jsonnet": ["cfg"], - }, "lsp": { "clangd": { "binary": { @@ -42,12 +26,5 @@ ], }, }, - "jsonnet-language-server": { - "settings": { - "formatting": { - "indent": 4, - }, - }, - }, }, } diff --git a/.zed/tasks.json b/.zed/tasks.json index ec90e15..d42584e 100644 --- a/.zed/tasks.json +++ b/.zed/tasks.json @@ -1,13 +1,13 @@ [ { - "label": "CmakeConfig", + "label": "Config", "command": "cmd", "env": { - "VS2026ENV": "\"C:\\Program Files\\Microsoft Visual Studio\\18\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat\"", + "BUILDTOOL": "\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat\"", }, "args": [ "/c", - "$VS2026ENV && cmake -Bbuild -G Ninja -S . -DCOMPILE_GUI=ON -DCMAKE_BUILD_TYPE=Debug", + "\"%BUILDTOOL% && cmake -Bbuild -G Ninja -S . -DCMAKE_PREFIX_PATH=C:\\Kit\\Qt6 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON\"", ], "cwd": "$ZED_WORKTREE_ROOT", "use_new_terminal": false, @@ -15,12 +15,12 @@ "show_summary": true, }, { - "label": "CmakeBuild", + "label": "Build", "command": "cmd", "env": { - "VS2026ENV": "\"C:\\Program Files\\Microsoft Visual Studio\\18\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat\"", + "BUILDTOOL": "\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat\"", }, - "args": ["/c", "$VS2026ENV && cmake --build build --config Debug"], + "args": ["/c", "\"%BUILDTOOL% && cmake --build build --config Debug\""], "cwd": "$ZED_WORKTREE_ROOT", "use_new_terminal": false, "show_command": true,