Skip to content

Instantly share code, notes, and snippets.

@eltercero
Created October 10, 2024 17:59
Show Gist options
  • Save eltercero/27718bb4b4946eb942922c1b72d5a268 to your computer and use it in GitHub Desktop.
Save eltercero/27718bb4b4946eb942922c1b72d5a268 to your computer and use it in GitHub Desktop.
Zed Settings
[
{
"context": "Workspace",
"bindings": {
"cmd-alt-ctrl-d": "workspace::ToggleLeftDock",
"cmd-ctrl-r": "pane::RevealInProjectPanel",
"cmd-k H": ["workspace::SwapPaneInDirection", "Left"],
"cmd-k J": ["workspace::SwapPaneInDirection", "Right"]
}
},
{
"context": "Editor",
"bindings": {
"ctrl-left": "editor::MoveToPreviousSubwordStart",
"ctrl-right": "editor::MoveToNextSubwordEnd",
"ctrl-1": ["workspace::ActivatePaneInDirection", "Left"],
"ctrl-2": ["workspace::ActivatePaneInDirection", "Right"],
"alt-shift-up": "editor::AddSelectionAbove", // Insert cursor above
"alt-shift-down": "editor::AddSelectionBelow", // Insert cursor below
// Move lines around
"cmd-ctrl-up": "editor::MoveLineUp",
"cmd-ctrl-down": "editor::MoveLineDown",
"ctrl-cmd-left": "editor::Outdent",
"ctrl-cmd-right": "editor::Indent",
"alt-enter": "editor::SelectAllMatches",
"cmd-shift-l": "editor::SelectLine",
"cmd-alt-down": "editor::GoToDefinition",
"cmd-i": "editor::CopyPath",
"cmd-k cmd-d": "editor::ToggleHunkDiff",
"cmd-k cmd-b": "editor::ToggleGitBlame",
"pageup": "editor::MovePageUp",
"pagedown": "editor::MovePageDown",
"home": "editor::MoveToBeginning",
"end": "editor::MoveToEnd"
}
},
{
"context": "Pane",
"bindings": {
"cmd-k cmd-h": "pane::SplitLeft",
"cmd-k cmd-j": "pane::SplitRight"
}
},
{
"context": "Editor && mode == full",
"bindings": {
"cmd-shift-o": "outline::Toggle",
"cmd-l": "go_to_line::Toggle"
}
}
]
{
"assistant": {
"default_model": {
"provider": "zed.dev",
"model": "claude-3-5-sonnet-20240620"
},
"enabled": true,
"version": "2",
"button": true
},
"autosave": "on_focus_change",
"base_keymap": "SublimeText",
"buffer_font_family": "Iosevka",
"buffer_font_size": 19,
"chat_panel": {
"button": false,
"dock": "bottom"
},
"current_line_highlight": "all",
"ensure_final_newline_on_save": true,
"features": {
"copilot": false,
"inline_completion_provider": "none"
},
"file_scan_exclusions": [
"**/.git",
"**/.svn",
"**/.hg",
"**/CVS",
"**/.DS_Store",
"**/Thumbs.db",
"**/.classpath",
"**/.settings",
"**/*.pyc",
"**/*.pyo",
"**/*.exe",
"**/*.dll",
"**/*.obj",
"**/*.o",
"**/*.a",
"**/*.lib",
"**/*.so",
"**/*.dylib",
"**/*.ncb",
"**/*.sdf",
"**/*.suo",
"**/*.pdb",
"**/*.idb",
"**/*.class",
"**/*.psd",
"**/*.db",
"**/*.el",
"**/*.log",
"**/*.byebug_history",
"node_modules/**",
"log/**",
"coverage/**",
"public/**",
"tmp/**",
"storage/**",
".bundle/**",
".zed/**",
".github/**",
".idea/**",
".ruby-lsp/**"
],
"git": {
"inline_blame": {
"enabled": false
}
},
"hour_format": "hour24",
// Indent guides. Rainbow indentation
"indent_guides": {
"enabled": true,
"coloring": "indent_aware"
},
"inlay_hints": {
// Global switch to toggle hints on and off, switched off by default.
"enabled": false
},
"languages": {
"Ruby": {
"enable_language_server": true,
"language_servers": ["solargraph", "!ruby-lsp", "!rubocop", "..."]
},
"YAML": {
"enable_language_server": true
},
"ERB": {
"formatter": {
"external": {
"command": "htmlbeautifier",
"arguments": []
}
}
}
},
"scrollbar": {
"show": "system"
},
"buffer_line_height": {
"custom": 1.3
},
"format_on_save": "off",
"lsp": {
"ruby-lsp": {
"initialization_options": {
"enabledFeatures": {
"diagnostics": false,
"formatting": false
},
"formatter": "standard"
}
},
"solargraph": {
"initialization_options": {
"diagnostics": false,
"formatting": false
}
},
"yaml-language-server": {
"settings": {
"yaml": {
"format_on_save": false,
"validate": false,
"completion": false,
"format": {
"enable": false,
"singleQuote": true
}
}
}
}
},
"project_panel": {
"auto_fold_dirs": true,
"file_icons": false,
"indent_size": 12,
"auto_reveal_entries": false
},
"outline_panel": {
"button": false
},
"notification_panel": {
"button": false
},
"collaboration_panel": {
"button": false
},
"remove_trailing_whitespace_on_save": true,
"seed_search_query_from_cursor": "selection",
"tab_size": 2,
"tabs": {
// Show git status colors in the editor tabs.
"git_status": true,
// Position of the close button on the editor tabs.
"close_position": "right"
},
"terminal": {
"font_family": "Iosevka Term",
"font_size": 17
},
"theme": "Base16 Eighties",
"ui_font_size": 16,
"vertical_scroll_margin": 6
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment