From 9987870c821881f19945e24d2699c180a2b9f42c Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 6 Jul 2026 17:33:21 +0000 Subject: [PATCH 1/2] feat(claude): use gopls-lazy as Claude Code Go LSP MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Claude Code v2.0.74+ の LSP プラグイン機構を使い、公式 gopls-lsp (gopls serve) を無効化して gopls-lazy へ差し替える。 skills-dir プラグイン (~/.claude/skills 配下 + .claude-plugin/plugin.json) として in-place ロードするため marketplace 登録・install 不要で、 既存の mkOutOfStoreSymlink 管理と整合する(nix rebuild 不要)。 これで nvim / mise に続き Claude Code も gopls-lazy に統一され、 大規模モノレポでの gopls CPU/メモリ footprint 削減が効く。 Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_017Rf6W5zEyCWSuL8eoBGGHF --- home/claude/settings.json | 3 ++- .../gopls-lazy-lsp/.claude-plugin/plugin.json | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 home/claude/skills/gopls-lazy-lsp/.claude-plugin/plugin.json diff --git a/home/claude/settings.json b/home/claude/settings.json index 5893250..e5dc425 100644 --- a/home/claude/settings.json +++ b/home/claude/settings.json @@ -121,7 +121,8 @@ "command": "~/.claude/statusline.js" }, "enabledPlugins": { - "gopls-lsp@claude-plugins-official": true, + "gopls-lsp@claude-plugins-official": false, + "gopls-lazy-lsp@skills-dir": true, "lua-lsp@claude-plugins-official": true, "commit-commands@claude-plugins-official": true, "example-skills@anthropic-agent-skills": true, diff --git a/home/claude/skills/gopls-lazy-lsp/.claude-plugin/plugin.json b/home/claude/skills/gopls-lazy-lsp/.claude-plugin/plugin.json new file mode 100644 index 0000000..765b200 --- /dev/null +++ b/home/claude/skills/gopls-lazy-lsp/.claude-plugin/plugin.json @@ -0,0 +1,13 @@ +{ + "name": "gopls-lazy-lsp", + "version": "0.1.0", + "description": "sivchari/gopls-lazy を Claude Code の Go LSP として使う。gopls への drop-in プロキシで、大規模 Go モノレポの型チェックを動的にスコープし CPU/メモリを削減する。skills-dir プラグインとして in-place ロードされる(marketplace 不要)。", + "lspServers": { + "go": { + "command": "gopls-lazy", + "extensionToLanguage": { + ".go": "go" + } + } + } +} From 9fe3cfd06d38e2851c1146a025fbb29516043154 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 7 Jul 2026 02:26:08 +0000 Subject: [PATCH 2/2] chore(claude): add author to gopls-lazy-lsp plugin manifest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `claude plugin validate` の author 未設定警告を解消。plugin list / details で LSP servers(1) go として loaded になることを確認済み。 Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_017Rf6W5zEyCWSuL8eoBGGHF --- home/claude/skills/gopls-lazy-lsp/.claude-plugin/plugin.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/home/claude/skills/gopls-lazy-lsp/.claude-plugin/plugin.json b/home/claude/skills/gopls-lazy-lsp/.claude-plugin/plugin.json index 765b200..9db3b01 100644 --- a/home/claude/skills/gopls-lazy-lsp/.claude-plugin/plugin.json +++ b/home/claude/skills/gopls-lazy-lsp/.claude-plugin/plugin.json @@ -1,6 +1,9 @@ { "name": "gopls-lazy-lsp", "version": "0.1.0", + "author": { + "name": "rin2yh" + }, "description": "sivchari/gopls-lazy を Claude Code の Go LSP として使う。gopls への drop-in プロキシで、大規模 Go モノレポの型チェックを動的にスコープし CPU/メモリを削減する。skills-dir プラグインとして in-place ロードされる(marketplace 不要)。", "lspServers": { "go": {