2025-02-19 10:22:27 +00:00
|
|
|
<div align="center">
|
|
|
|
|
2025-02-19 05:55:33 +00:00
|
|
|
# monaco-editor-lsp-next
|
2025-02-19 01:00:15 +00:00
|
|
|
|
2025-02-19 10:22:27 +00:00
|
|
|
✨ A Next.js integration of Monaco Editor with LSP support, free from SSR issues.
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
## 🚀 Quick Start
|
|
|
|
|
|
|
|
### 🐳 Using Docker (Recommended)
|
2025-02-19 01:00:15 +00:00
|
|
|
|
2025-02-19 10:22:27 +00:00
|
|
|
```sh
|
|
|
|
# Clone repository
|
|
|
|
git clone https://github.com/cfngc4594/monaco-editor-lsp-next
|
|
|
|
cd monaco-editor-lsp-next
|
2025-02-19 01:00:15 +00:00
|
|
|
|
2025-02-19 10:22:27 +00:00
|
|
|
# Start containers in detached mode
|
|
|
|
docker compose -f ./docker/compose.yml up -d
|
|
|
|
```
|
2025-02-19 01:00:15 +00:00
|
|
|
|
2025-02-19 10:22:27 +00:00
|
|
|
## 🔧 Development Setup
|
2025-02-19 01:00:15 +00:00
|
|
|
|
2025-02-19 10:22:27 +00:00
|
|
|
```sh
|
|
|
|
git clone https://github.com/cfngc4594/monaco-editor-lsp-next
|
|
|
|
cd monaco-editor-lsp-next
|
|
|
|
docker compose -f ./docker/compose.yml up -d lsp-c lsp-cpp
|
|
|
|
bun install
|
|
|
|
bun run dev
|
|
|
|
```
|
2025-02-19 01:00:15 +00:00
|
|
|
|
2025-02-19 10:22:27 +00:00
|
|
|
## ⚙️ Configuration
|
2025-02-19 01:00:15 +00:00
|
|
|
|
2025-02-19 10:22:27 +00:00
|
|
|
### LSP Server Settings
|
2025-02-19 01:00:15 +00:00
|
|
|
|
2025-02-19 10:22:27 +00:00
|
|
|
| **Language** | **LSP Server** | **Port** |
|
|
|
|
|----------------|------------------|------------|
|
|
|
|
| `C` | `clangd` | `4594` |
|
|
|
|
| `C++` | `clangd` | `4595` |
|