feat(gopls): gopls-lazy を nvim / mise / Claude Code の Go LSP に統一#78
Draft
rin2yh wants to merge 2 commits into
Draft
feat(gopls): gopls-lazy を nvim / mise / Claude Code の Go LSP に統一#78rin2yh wants to merge 2 commits into
rin2yh wants to merge 2 commits into
Conversation
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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017Rf6W5zEyCWSuL8eoBGGHF
`claude plugin validate` の author 未設定警告を解消。plugin list / details で LSP servers(1) go として loaded になることを確認済み。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017Rf6W5zEyCWSuL8eoBGGHF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
sivchari/gopls-lazy(gopls への drop-in プロキシ。大規模 Go モノレポの型チェックを動的にスコープし CPU/メモリ footprint を削減)を、Neovim・mise に続き Claude Code の Go LSP にも適用して統一する。変更内容
mise / Neovim(既存コミット
fcb1385)home/mise/config.toml:github:sivchari/gopls-lazy@v0.3.0を追加home/nvim/lua/lsp/gopls.lua: 起動コマンドをgopls→gopls-lazyに変更Claude Code(本コミット
9987870)home/claude/skills/gopls-lazy-lsp/.claude-plugin/plugin.jsonを新規追加し、lspServers.go.command = "gopls-lazy"を宣言home/claude/settings.json: 公式gopls-lsp@claude-plugins-official(gopls serve)を無効化し、gopls-lazy-lsp@skills-dirを有効化設計上のポイント
~/.claude/skills/<name>/.claude-plugin/plugin.json)として in-place ロードされるため、marketplace 登録も install ステップも不要。~/.claude/skillsは既にmkOutOfStoreSymlinkでディレクトリごと symlink 済みなので、配下へのサブディレクトリ追加は nix rebuild 不要で反映される(home.fileへのエントリ追加が発生しない)。goplsはmake tools(go install golang.org/x/tools/gopls@latest)で導入済みで、gopls-lazyが PATH 上のgoplsにプロキシする。バイナリ追加は不要。動作確認
/reload-plugins)後、/pluginの Errors タブにgopls-lazy関連エラーが出ないこと🤖 Generated with Claude Code
https://claude.ai/code/session_017Rf6W5zEyCWSuL8eoBGGHF
Generated by Claude Code