diff --git a/Zed/keymap.json b/Zed/keymap.json new file mode 100644 index 0000000..e335821 --- /dev/null +++ b/Zed/keymap.json @@ -0,0 +1,27 @@ +// 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": "Workspace", + "bindings": { + // "shift shift": "file_finder::Toggle" + }, + }, + { + "context": "Editor && vim_mode == insert", + "bindings": { + // "j k": "vim::NormalBefore" + }, + }, + { + "context": "Editor", + "bindings": { + "alt-g": "editor::GoToDefinition", + }, + }, +] diff --git a/Zed/settings.json b/Zed/settings.json new file mode 100644 index 0000000..431c442 --- /dev/null +++ b/Zed/settings.json @@ -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, + }, + }, + }, + }, +} diff --git a/helix/config.toml b/helix/config.toml new file mode 100644 index 0000000..2e03358 --- /dev/null +++ b/helix/config.toml @@ -0,0 +1,8 @@ +theme = "ayu_light" + +[editor] +line-number = "relative" + +[editor.statusline] +center = ["total-line-numbers"] +right = ["position-percentage", "file-type", "file-encoding", "position", "file-line-ending"] diff --git a/vscode/shortkey.txt b/vscode/shortkey.txt new file mode 100644 index 0000000..9259f1b --- /dev/null +++ b/vscode/shortkey.txt @@ -0,0 +1,13 @@ +快捷键: +[ + { + "command": "cmake.debugTarget", + "key": "F5", + "when": "cmake:enableFullFeatureSet && inCMakeProject && !cmake:hideDebugCommand && !inDebugMode" + }, + { + "command": "editor.action.revealDefinition", + "key": "ALT+G", + "when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor" + } +] \ No newline at end of file diff --git a/wezterm/wezterm.lua b/wezterm/wezterm.lua new file mode 100644 index 0000000..3977523 --- /dev/null +++ b/wezterm/wezterm.lua @@ -0,0 +1,25 @@ +local wz = require("wezterm") + +local config = {} + +config.audible_bell = "Disabled" +config.check_for_updates = false +config.color_scheme = "Builtin Solarized Dard" +config.initial_rows = 30 +config.initial_cols = 130 +config.font_size = 11 +config.font = wz.font 'Maple Mono NL NF CN Light' +config.keys = { + { + key = "F11", + mods = "CTRL", + action = wz.action.ToggleFullScreen, + }, + { + key = "F10", + mods = "CTRL", + action = wz.action.Hide, + }, +} + +return config