瀏覽代碼

Add Ruby LSP plugin with inline lspServers configuration

Omar Bahareth 8 月之前
父節點
當前提交
80a2049c5d
共有 2 個文件被更改,包括 55 次插入0 次删除
  1. 24 0
      .claude-plugin/marketplace.json
  2. 31 0
      plugins/ruby-lsp/README.md

+ 24 - 0
.claude-plugin/marketplace.json

@@ -228,6 +228,30 @@
         }
       }
     },
+    {
+      "name": "ruby-lsp",
+      "description": "Ruby language server for code intelligence and analysis",
+      "version": "1.0.0",
+      "author": {
+        "name": "Anthropic",
+        "email": "support@anthropic.com"
+      },
+      "source": "./plugins/ruby-lsp",
+      "category": "development",
+      "strict": false,
+      "lspServers": {
+        "ruby-lsp": {
+          "command": "ruby-lsp",
+          "extensionToLanguage": {
+            ".rb": "ruby",
+            ".rake": "ruby",
+            ".gemspec": "ruby",
+            ".ru": "ruby",
+            ".erb": "erb"
+          }
+        }
+      }
+    },
     {
       "name": "agent-sdk-dev",
       "description": "Development kit for working with the Claude Agent SDK",

+ 31 - 0
plugins/ruby-lsp/README.md

@@ -0,0 +1,31 @@
+# ruby-lsp
+
+Ruby language server for Claude Code, providing code intelligence and analysis.
+
+## Supported Extensions
+`.rb`, `.rake`, `.gemspec`, `.ru`, `.erb`
+
+## Installation
+
+### Via gem (recommended)
+```bash
+gem install ruby-lsp
+```
+
+### Via Bundler
+Add to your Gemfile:
+```ruby
+gem 'ruby-lsp', group: :development
+```
+
+Then run:
+```bash
+bundle install
+```
+
+## Requirements
+- Ruby 3.0 or later
+
+## More Information
+- [Ruby LSP Website](https://shopify.github.io/ruby-lsp/)
+- [GitHub Repository](https://github.com/Shopify/ruby-lsp)