mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-05-18 15:26:36 +00:00
47 lines
1.0 KiB
Markdown
47 lines
1.0 KiB
Markdown
<div align="center">
|
|
|
|
# monaco-editor-lsp-next
|
|
|
|
✨ A Next.js integration of Monaco Editor with LSP support, free from SSR issues.
|
|
|
|
</div>
|
|
|
|
## 🚀 Quick Start
|
|
|
|
### 🐳 Using Docker (Recommended)
|
|
|
|
```sh
|
|
# Clone repository
|
|
git clone https://github.com/cfngc4594/monaco-editor-lsp-next
|
|
cd monaco-editor-lsp-next
|
|
|
|
# Start containers in detached mode
|
|
docker compose -f ./docker/compose.yml up -d
|
|
```
|
|
|
|
## 🔧 Development Setup
|
|
|
|
```sh
|
|
# Clone repository
|
|
git clone https://github.com/cfngc4594/monaco-editor-lsp-next
|
|
cd monaco-editor-lsp-next
|
|
|
|
# Start specific containers (lsp-c and lsp-cpp) in detached mode
|
|
docker compose -f ./docker/compose.yml up -d lsp-c lsp-cpp
|
|
|
|
# Install project dependencies using Bun package manager
|
|
bun install
|
|
|
|
# Run the development server
|
|
bun run dev
|
|
```
|
|
|
|
## ⚙️ Configuration
|
|
|
|
### LSP Server Settings
|
|
|
|
| **Language** | **LSP Server** | **Port** |
|
|
|----------------|------------------|------------|
|
|
| `C` | `clangd` | `4594` |
|
|
| `C++` | `clangd` | `4595` |
|