Cosmos DSL Language Server - LSP for VSCode and IDE integration
Project description
Cosmos Language Server
LSP (Language Server Protocol) implementation for Cosmos DSL.
Features
- Syntax Highlighting - Full Cosmos DSL highlighting
- Auto-completion - Keywords and type suggestions
- Diagnostics - Real-time E401 error detection
- Hover Docs - Documentation on hover
- Go-to Definition - Navigate your cosmos files
- Document Symbols - Outline view support
Installation
pip install cosmos-language
VSCode
Install from VSCode Marketplace or manually:
{
"languages": [{
"id": "cosmos",
"extensions": [".cosmos"]
}],
"languageServer": "cosmos-language-server"
}
Neovim
-- Using nvim-lspconfig
require('lspconfig').cosmos_language_server.setup({})
Usage
# Start the language server
cosmos-language-server
# Or use with VSCode
# Install the Cosmos DSL VSCode extension
Cosmos DSL Example
universe production {
planet web_server {
region: us-east-1
start_on: 2026-01-01
end_on: 2026-12-31
}
planet database {
region: us-east-1
depends_on: web_server
}
light deploy -> web_server, database
}
License
Apache 2.0
Author
Luis Alberto Burciaga Miker
luis@solvens.amoris
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cosmos_language-1.0.0.tar.gz
(4.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cosmos_language-1.0.0.tar.gz.
File metadata
- Download URL: cosmos_language-1.0.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3e98e953f945c16c314edd9d7c1c54ff4deff72809ecdb5ca3e6b2c8b6034e9
|
|
| MD5 |
cf9b4718ce9f2fd1446561ad8dc65c5b
|
|
| BLAKE2b-256 |
fad19e04a0bb2474a5661f9924b6a5e55810043e94377235b454da7e1bccd235
|
File details
Details for the file cosmos_language-1.0.0-py3-none-any.whl.
File metadata
- Download URL: cosmos_language-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f96b4ec4de68911fdc932dad1b142454077e7aa3370e4395af3e8f0767321f5
|
|
| MD5 |
7e0f42d3e1cf7bd41727919e57721bf4
|
|
| BLAKE2b-256 |
21e8f997d06486513be16789d8d7950ffa32238cb5faa17aadd3d19bde5501d7
|