Skip to content

feat: add Astro LSP plugin#34

Open
synxn1o wants to merge 1 commit into
boostvolt:mainfrom
synxn1o:feat/astro-lsp
Open

feat: add Astro LSP plugin#34
synxn1o wants to merge 1 commit into
boostvolt:mainfrom
synxn1o:feat/astro-lsp

Conversation

@synxn1o
Copy link
Copy Markdown

@synxn1o synxn1o commented May 28, 2026

Summary

  • Add LSP plugin for .astro files using @astrojs/language-server
  • Includes auto-install hook (hooks/check-astro-ls.sh) that runs on session start
  • .lsp.json with typescript.tsdk initialization option (required by astro-ls)
  • Registered in marketplace.json

Plugin structure

astro_lsp/
├── .claude-plugin/
│   └── plugin.json
├── .lsp.json
├── hooks/
│   ├── hooks.json
│   └── check-astro-ls.sh
└── README.md

Tested

  • documentSymbol — returns Props interface, variables, HTML elements, CSS rules
  • hover — returns type info for Astro component props

🤖 Generated with Claude Code

Add LSP plugin for .astro files using @astrojs/language-server.
Includes auto-install hook, .lsp.json config with typescript.tsdk
initialization options, and README documentation.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant