Skip to content

Instantly share code, notes, and snippets.

@29decibel
Created March 2, 2025 01:06
Show Gist options
  • Save 29decibel/01c04157598ce2adbf0a441be4521689 to your computer and use it in GitHub Desktop.
Save 29decibel/01c04157598ce2adbf0a441be4521689 to your computer and use it in GitHub Desktop.
Zed settings for ruby and elixir
// 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.
{
"assistant": {
"default_model": {
"provider": "zed.dev",
"model": "claude-3-7-sonnet-latest"
},
"version": "2"
},
"vim_mode": true,
"theme": "Gruvbox Dark",
"telemetry": {
"diagnostics": false,
"metrics": false
},
"buffer_font_size": 15,
"lsp": {
"biome": {
"settings": {
"require_config_file": true
}
}
},
"languages": {
"Ruby": {
"language_servers": ["ruby-lsp", "!solargraph", "!rubocop", "..."],
"format_on_save": {
"external": {
"command": "rubyfmt",
"arguments": [],
"stdin": true
}
}
},
"Elixir": {
"format_on_save": {
"external": {
"command": "mix",
"arguments": ["format", "--stdin-filename", "{buffer_path}", "-"]
}
}
}
}
}
@29decibel
Copy link
Author

config path: ~/.config/zed/settings.json

@29decibel
Copy link
Author

Gemfile:

group :development do
  gem "ruby-lsp"
end

@29decibel
Copy link
Author

Install Rubyfmt

brew install rubyfmt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment