@holoscript/lsp
v7.0.0
Published
Language Server Protocol implementation for HoloScript
Downloads
221
Maintainers
Readme
@holoscript/lsp
Language Server Protocol implementation for HoloScript.
Installation
npm install @holoscript/lspFeatures
- 🎯 Autocomplete - Intelligent code completion
- 🔍 Hover - Documentation on hover
- 📍 Go to Definition - Navigate to declarations
- 🔎 Find References - Find all usages
- ✏️ Rename - Safe symbol renaming
- 🔧 Code Actions - Quick fixes and refactors
- 🎨 Semantic Highlighting - Rich syntax coloring
- ⚠️ Diagnostics - Real-time error reporting
Usage
As a Server
import { startServer } from '@holoscript/lsp';
startServer({
connection: createConnection(),
documents: new TextDocuments(TextDocument),
});With VS Code
The LSP is bundled with @holoscript/vscode.
With Neovim
require('lspconfig').holoscript.setup({
cmd = { 'holoscript-lsp', '--stdio' },
})AI Autocomplete
Enable AI-powered suggestions:
import { createAutocomplete } from '@holoscript/lsp';
const autocomplete = createAutocomplete({
provider: 'copilot',
context: 'vr-game',
});License
MIT
