From ef8938133769db21d1853e58d70b71fe19054d6d Mon Sep 17 00:00:00 2001 From: Menno van Leeuwen Date: Wed, 4 Jun 2025 12:07:55 +0200 Subject: [PATCH] Add Zed editor settings and symlink configuration --- .../ansible/tasks/workstations/symlinks.yml | 9 +- zed/settings.json | 91 +++++++++++++++++++ 2 files changed, 99 insertions(+), 1 deletion(-) create mode 100644 zed/settings.json diff --git a/config/ansible/tasks/workstations/symlinks.yml b/config/ansible/tasks/workstations/symlinks.yml index 52d2b49..385f161 100644 --- a/config/ansible/tasks/workstations/symlinks.yml +++ b/config/ansible/tasks/workstations/symlinks.yml @@ -11,5 +11,12 @@ force: true follow: false loop: - - { src: "$DOTFILES_PATH/vscode/settings.json", dest: "~/.config/Code/User/settings.json" } + - { + src: "$DOTFILES_PATH/vscode/settings.json", + dest: "~/.config/Code/User/settings.json", + } + - { + src: "$DOTFILES_PATH/zed/settings.json", + dest: "~/.config/zed/settings.json", + } - { src: "$DOTFILES_PATH/config/autostart", dest: "~/.config/autostart" } diff --git a/zed/settings.json b/zed/settings.json new file mode 100644 index 0000000..50125a3 --- /dev/null +++ b/zed/settings.json @@ -0,0 +1,91 @@ +// 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) +{ + // ############################################# + // ## Theming ## + // ############################################# + "icon_theme": "Catppuccin Frappé", + "ui_font_size": 16, + "buffer_font_size": 16, + "minimap": { + "show": "auto", + "thumb": "hover", + "current_line_highlight": "all" + }, + "theme": { + "mode": "system", + "light": "Catppuccin Latte", + "dark": "Catppuccin Frappé" + }, + "tabs": { + "close_position": "right", + "file_icons": true, + "git_status": true, + "activate_on_close": "history", + "show_close_button": "hover", + "show_diagnostics": "errors" + }, + "toolbar": { + "code_actions": true + }, + + // ############################################# + // ## Preferences ## + // ############################################# + "restore_on_startup": "last_session", + "auto_update": true, + "base_keymap": "VSCode", + "cursor_shape": "bar", + "hide_mouse": "on_typing", + "on_last_window_closed": "quit_app", + "ensure_final_newline_on_save": true, + "format_on_save": "prettier", + // Example on language specific options: + // "languages": { + // "Shell Script": { + // "format_on_save": "off" + // } + // }, + + // ############################################# + // ## AI Stuff ## + // ############################################# + "agent": { + "model_parameters": [], + "default_model": { + "provider": "copilot_chat", + "model": "claude-3.7-sonnet" + }, + "version": "2" + }, + "edit_predictions": { + "mode": "subtle", + "enabled_in_text_threads": true, + "disabled_globs": [ + "**/.env*", + "**/*.pem", + "**/*.key", + "**/*.cert", + "**/*.crt", + "**/.dev.vars", + "**/secrets/**" + ] + }, + + // ############################################# + // ## Extensions ## + // ############################################# + "auto_install_extensions": { + "dockerfile": true, + "html": true, + "yaml": true, + "docker-compose": true, + "golang": true + } +}