Env:zed配置添加。
This commit is contained in:
12
.clangd
Normal file
12
.clangd
Normal file
@@ -0,0 +1,12 @@
|
||||
Hover:
|
||||
ShowAKA: Yes
|
||||
Diagnostics:
|
||||
UnusedIncludes: None # 禁用未使用头文件提示
|
||||
Suppress: [
|
||||
anon_type_definition, # 禁用匿名的typedef提示
|
||||
unused-variable, # 禁用未使用变量提示
|
||||
unused-function, # 禁用未使用函数提示
|
||||
unused-includes,
|
||||
]
|
||||
ClangTidy:
|
||||
Remove: misc-unused-alias-decls
|
||||
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,
|
||||
},
|
||||
]
|
||||
@@ -4,6 +4,7 @@ project(frelay VERSION 0.2.4 LANGUAGES CXX)
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
set(PROJECT_URL "https://github.com/taynpg/frelay")
|
||||
|
||||
if(DEFINED RELEASE_MARK)
|
||||
@@ -71,7 +72,7 @@ set(QT_DEP_FILES
|
||||
"${CMAKE_PREFIX_PATH}/bin/Qt${QT_DEFAULT_MAJOR_VERSION}Network.dll"
|
||||
)
|
||||
set(QT_DEP_PLATFORM "${CMAKE_PREFIX_PATH}/plugins/platforms/qwindows.dll")
|
||||
set(QT_DEP_STYLES
|
||||
set(QT_DEP_STYLES
|
||||
"${CMAKE_PREFIX_PATH}/plugins/styles/qmodernwindowsstyle.dll"
|
||||
"${CMAKE_PREFIX_PATH}/plugins/styles/qwindowsvistastyle.dll"
|
||||
)
|
||||
@@ -80,7 +81,7 @@ endif()
|
||||
set(CMAKE_DEBUG_POSTFIX "d")
|
||||
include_directories(${CMAKE_SOURCE_DIR}/Gui/Control)
|
||||
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib/${CMAKE_BUILD_TYPE})
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/${CMAKE_BUILD_TYPE}/)
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/${CMAKE_BUILD_TYPE}/)
|
||||
include_directories(${PROJECT_BINARY_DIR})
|
||||
|
||||
add_definitions(-DFMT_HEADER_ONLY)
|
||||
|
||||
@@ -111,4 +111,4 @@ enum FileCheckState {
|
||||
#define STR_DIR "Dir"
|
||||
#define STR_NONE "None"
|
||||
|
||||
#endif // PROTOCOL_H
|
||||
#endif // PROTOCOL_H
|
||||
|
||||
Reference in New Issue
Block a user