From 9a812e16e8a850473c3abd722ec458002d7e9820 Mon Sep 17 00:00:00 2001 From: Anthony Cicchetti Date: Tue, 24 Sep 2024 15:17:55 -0400 Subject: [PATCH] zed stuff --- zed/keymap.json | 5 ++- zed/settings.json | 98 +++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 86 insertions(+), 17 deletions(-) diff --git a/zed/keymap.json b/zed/keymap.json index 4c6b73f..9ccbb1a 100644 --- a/zed/keymap.json +++ b/zed/keymap.json @@ -1,6 +1,9 @@ [ { "context": "VimControl", - "bindings": { "space s": "pane::RevealInProjectPanel" } + "bindings": { + "space s": "pane::RevealInProjectPanel", + "ctrl-r": "workspace::ToggleRightDock" + } } ] diff --git a/zed/settings.json b/zed/settings.json index 3fd9d91..708c078 100644 --- a/zed/settings.json +++ b/zed/settings.json @@ -1,32 +1,98 @@ +// 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. +// custom settings, run `zed: open default settings` from the +// command palette { - "theme": "Kanagawa Wave", "vim_mode": true, - "ui_font_size": 16, - "buffer_font_family": "Fantasque Sans Mono", + "autosave": "on_focus_change", + "assistant": { + "default_model": { + "provider": "ollama", + "model": "qwen2.5-coder:latest" + }, + "version": "2", + "enabled": true, + "button": true + }, + "buffer_font_family": "Iosevka Custom", + "buffer_font_fallbacks": [ + "Apple Color Emoji", + "Segoe UI Emoji", + "Noto Color Emoji" + ], + "buffer_font_weight": 400, "buffer_font_size": 16, - "assistant_v2": { - "enabled": true + "load_direnv": "shell_hook", + "ui_font_size": 16, + "theme": { + "mode": "system", + "light": "Kanagawa Wave", + "dark": "Kanagawa Wave" + }, + "scrollbar": { + "show": "always" + }, + "tab_bar": { + "show_nav_history_buttons": false }, "tabs": { - "file_icons": true + "file_icons": true, + "git_status": true + }, + "toolbar": { + "breadcrumbs": true, + "quick_actions": true + }, + "lsp": { + "rust-analyzer": { + "initialization_options": { + "check": { + "command": "clippy" + } + } + } + }, + "always_treat_brackets_as_autoclosed": true, + "git": { + "git_gutter": "tracked_files", + "inline_blame": { + "enabled": true, + "delay_ms": 200 + } + }, + "indent_guides": { + "enabled": true, + "coloring": "indent_aware", + "background_coloring": "disabled" + }, + "inlay_hints": { + "enabled": true, + "show_type_hints": true, + "show_parameter_hints": true }, "languages": { - "Typescript": { - "language_servers": ["!typescript-language-server", "vtsls"] + "Python": { + "format_on_save": "on", + "formatter": { + "external": { + "command": "black", + "args": ["--quiet", "-"] + } + } } }, - "assistant": { - "version": "1", - "provider": { - "name": "ollama", - "low_speed_timeout_in_seconds": 30 - } + "preview_tabs": { + "enabled": true, + "enable_preview_from_file_finder": true, + "enable_preview_from_code_navigation": true + }, + "show_whitespaces": "all", + "telemetry": { + "diagnostics": false, + "metrics": false } }