Skip to content

Sublime Text

The official LUMOS package for Sublime Text provides syntax highlighting, snippets, and LSP integration.

Once available on Package Control:

  1. Open Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
  2. Select “Package Control: Install Package”
  3. Search for “LUMOS”
  4. Press Enter to install
Terminal window
# Navigate to Packages directory
# macOS
cd ~/Library/Application\ Support/Sublime\ Text/Packages
# Linux
cd ~/.config/sublime-text/Packages
# Windows
cd %APPDATA%\Sublime Text\Packages
# Clone the repository
git clone https://github.com/getlumos/sublime-lumos LUMOS

  • Sublime Text 4 (or 3 build 3103+)
  • LSP package (optional, for IntelliSense)
  • lumos-lsp (optional, for LSP features)
    Terminal window
    cargo install lumos-lsp

Complete syntax highlighting for .lumos files:

  • Keywords and type declarations
  • Attributes and decorators
  • Comments (line and block)
  • String literals and numbers

Built-in snippets:

TriggerDescription
structAccount struct template
enumEnum definition
accAccount with common fields
typeType alias
depDeprecated attribute

Smart indentation for:

  • Struct and enum bodies
  • Field declarations
  • Nested blocks
  • Ctrl+/ - Toggle line comment
  • Ctrl+Shift+/ - Toggle block comment

  1. Install via Package Control: “LSP”
  2. Install lumos-lsp:
    Terminal window
    cargo install lumos-lsp

Create or edit LSP.sublime-settings:

{
"clients": {
"lumos": {
"enabled": true,
"command": ["lumos-lsp"],
"selector": "source.lumos",
"schemas": []
}
}
}

Or use the provided LSP-lumos.sublime-settings from the package.


Edit LUMOS.sublime-settings:

{
// Tab size for .lumos files
"tab_size": 4,
// Use spaces instead of tabs
"translate_tabs_to_spaces": true,
// Auto-complete brackets
"auto_match_enabled": true
}

Already configured in the package. To add custom patterns:

Preferences > Settings:

{
"file_extensions": {
"lumos": ["lumos", "schema"]
}
}

  1. Check file extension is .lumos
  2. Verify package is installed: Preferences > Package Control > List Packages
  3. Set syntax manually: View > Syntax > LUMOS
  1. Verify LSP package is installed
  2. Check lumos-lsp is on PATH:
    Terminal window
    lumos-lsp --version
  3. Check LSP logs: View > LSP > Log Panel