Files
iLSP/editor_configs/EDITOR_SETUP.md

66 lines
1.8 KiB
Markdown
Raw Normal View History

# Editor configs for lsp.i80.dk
## Helix (`~/.config/helix/languages.toml`)
```toml
[language-server.ilsp-python]
command = "nc"
args = ["lsp.i80.dk", "2087"]
[language-server.ilsp-bicep]
command = "nc"
args = ["lsp.i80.dk", "2088"]
[[language]]
name = "python"
language-servers = ["ilsp-python", "pylsp"] # runs alongside local pylsp if present
[[language]]
name = "bicep"
file-types = ["bicep", "bicepparam"]
language-servers = ["ilsp-bicep"]
```
## Neovim (`~/.config/nvim/lua/lsp.lua`)
```lua
-- Python: i80 completions alongside pyright
vim.lsp.start({
name = "ilsp-python",
cmd = { "nc", "lsp.i80.dk", "2087" },
filetypes = { "python" },
})
-- Bicep: full Bicep LS via i80 proxy
vim.lsp.start({
name = "ilsp-bicep",
cmd = { "nc", "lsp.i80.dk", "2088" },
filetypes = { "bicep" },
})
```
## PyCharm / IntelliJ IDEA Ultimate (LSP4IJ plugin)
1. Install **LSP4IJ** from JetBrains Marketplace
2. Settings → Languages & Frameworks → Language Servers → **+**
| Field | Python | Bicep |
|----------------|-------------------------|-------------------------|
| Name | `ilsp-python` | `ilsp-bicep` |
| Server type | External process | External process |
| Command | `nc lsp.i80.dk 2087` | `nc lsp.i80.dk 2088` |
| File patterns | `*.py` | `*.bicep, *.bicepparam` |
> PyCharm's built-in Python intelligence runs **alongside** ilsp-python — additive, not replacing.
## VS Code (`.vscode/settings.json`)
```json
{
"pylsp.server.command": ["nc", "lsp.i80.dk", "2087"],
"bicep.languageServerPath": "nc"
}
```
> Note: VS Code has better native support. Use only if you want the i80-specific completions.