From a067c11db77eb039e280bb6903d37cee7c3058e1 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Fri, 22 Nov 2024 16:39:25 +0000 Subject: Adds zed configs --- zed/keymap.json | 22 ++++++++++++++++++++ zed/settings.json | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 zed/keymap.json create mode 100644 zed/settings.json diff --git a/zed/keymap.json b/zed/keymap.json new file mode 100644 index 0000000..591ab50 --- /dev/null +++ b/zed/keymap.json @@ -0,0 +1,22 @@ +// 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" + "alt-`": "workspace::ToggleBottomDock" + } + }, + { + "context": "Editor", + "bindings": { + // "j k": ["workspace::SendKeystrokes", "escape"] + } + } +] diff --git a/zed/settings.json b/zed/settings.json new file mode 100644 index 0000000..58c5898 --- /dev/null +++ b/zed/settings.json @@ -0,0 +1,60 @@ +// 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) +{ + "assistant": { + "default_model": { + "provider": "zed.dev", + "model": "claude-3-5-sonnet-latest" + }, + "version": "2" + }, + "languages": { + "Ruby": { + "language_servers": [ + "ruby-lsp", + "!solargraph", + "!rubocop", + "tailwindcss-language-server" + ] + } + }, + "lsp": { + "tailwindcss-language-server": { + "settings": { + "includeLanguages": { + "erb": "html", + "ruby": "html" + }, + "experimental": { + "classRegex": ["\\bclass:\\s*['\"]([^'\"]*)['\"]"] + } + } + }, + "ruby-lsp": { + "initialization_options": { + "enabledFeatures": { + "diagnostics": true + } + } + } + }, + "base_keymap": "VSCode", + "telemetry": { + "diagnostics": false, + "metrics": false + }, + "vim_mode": true, + "ui_font_size": 16, + "buffer_font_family": "Iosevka Nerd Font", + "buffer_font_size": 17, + "theme": { + "mode": "system", + "light": "Rosé Pine", + "dark": "One Dark" + } +} -- cgit v1.2.3