diff --git a/zed/.gitignore b/zed/.gitignore new file mode 100644 index 0000000..5a9f2d7 --- /dev/null +++ b/zed/.gitignore @@ -0,0 +1 @@ +zed.xdg.symlink/.tmp* diff --git a/zed/extensions.list b/zed/extensions.list new file mode 100644 index 0000000..f895ec5 --- /dev/null +++ b/zed/extensions.list @@ -0,0 +1,6 @@ +- Dockerfile +- SQL +- GitHub Theme +- Make +- TOML +- GraphQL diff --git a/zed/zed.xdg.symlink/keymap.json b/zed/zed.xdg.symlink/keymap.json new file mode 100644 index 0000000..716f278 --- /dev/null +++ b/zed/zed.xdg.symlink/keymap.json @@ -0,0 +1,45 @@ +[ + { + "bindings": { + "cmd-o": "file_finder::Toggle" + } + }, + { + "context": "Pane", + "bindings": { + "ctrl-h": ["workspace::ActivatePaneInDirection", "Left"], + "ctrl-j": ["workspace::ActivatePaneInDirection", "Right"], + "ctrl-k": ["workspace::ActivatePaneInDirection", "Up"], + "ctrl-l": ["workspace::ActivatePaneInDirection", "Down"] + } + }, + { + "context": "Editor", + "bindings": { + "ctrl-h": ["workspace::ActivatePaneInDirection", "Left"], + "ctrl-j": ["workspace::ActivatePaneInDirection", "Down"], + "ctrl-k": ["workspace::ActivatePaneInDirection", "Up"], + "ctrl-l": ["workspace::ActivatePaneInDirection", "Right"] + } + }, + { + "context": "Editor && VimControl && !VimWaiting && !menu", + "bindings": { + ";": "command_palette::Toggle", + "ctrl-h": ["workspace::ActivatePaneInDirection", "Left"], + "ctrl-j": ["workspace::ActivatePaneInDirection", "Down"], + "ctrl-k": ["workspace::ActivatePaneInDirection", "Up"], + "ctrl-l": ["workspace::ActivatePaneInDirection", "Right"] + } + }, + { + "context": "Editor && vim_mode == insert", + "bindings": { + "j k": "vim::NormalBefore", + "left": null, + "down": null, + "up": null, + "right": null + } + } +] diff --git a/zed/zed.xdg.symlink/settings.json b/zed/zed.xdg.symlink/settings.json new file mode 100644 index 0000000..91259f7 --- /dev/null +++ b/zed/zed.xdg.symlink/settings.json @@ -0,0 +1,51 @@ +// 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 the `open default settings` command +// from the command palette or from `Zed` application menu. +{ + "theme": { + "dark": "Github Dark", + "light": "Github Light" + }, + "git": { + "inline_blame": { + "enabled": true + } + }, + "vim_mode": true, + "relative_line_numbers": true, + "buffer_font_size": 12, + "buffer_font_family": "Input Mono", + "ui_font_family": "SF Pro", + "ui_font_size": 15, + "project_panel": { + "dock": "right" + }, + "file_types": { + "Python": ["bazel", "WORKSPACE"] + }, + "languages": { + "TypeScript": { + "tab_size": 4 + }, + "JavaScript": { + "tab_size": 4 + }, + "TSX": { + "tab_size": 4 + }, + "Markdown": { + "tab_size": 4 + }, + "JSON": { + "tab_size": 4 + }, + "Make": { + "tab_size": 8 + } + } +}