Skip to content

alanpq/ritobin-lsp

Repository files navigation

ritobin-lsp

ritobin-lsp is a language server that provides IDE functionality for editing ritobin files, a custom text format to represent League of Legends .bin files. You can use it with any editor that supports the Language Server Protocol (VS Code, Vim, Emacs, Zed, etc.).

Warning

ritobin-lsp is still relatively early in development, so there is always a risk of instability/crashes.

Installation

On the releases page, the binary is available under ritobin-lsp, and the VS Code extension is available under ritobin-lsp-vs.

If you're using VS Code, the extension already bundles a copy of the ritobin-lsp binary, so you only need the .vsix. For other editors, you'll need to download the binary and configure your editor.

Note

.vsix files are also used by Visual Studio, so double clicking will likely not work.

See VS Code's page for installation instructions here

Usage

VS Code

Just open a .rito file or manually set the language to Ritobin!

Important

.py files are not recognised as ritobin, to not conflict with actual Python files. Rename your files to .rito.

For formatting - you can manually run the "Format Document" command, or set up format on save:

// settings.json
{
    "editor.formatOnSave": true
}

Vim/Emacs/etc.

Configure it as you would for any other language server :)

Features

  • Semantic tokens (syntax highlighting)
  • Formatting
  • Diagnostics
  • File unhash command
  • Automatic hashtable updates (with Mimir)
  • Direct opening of .bin files (#32)
  • lol-meta-classes integration
    • Class property auto-complete
    • Property value auto-complete
    • Class auto-complete
    • Hover information
    • Automatic meta dump updates
  • LoL Meta Wiki integration
    • Links to wiki in hover information
    • Class/property documentation
  • modpkg support
    • Linked bin & bin dependency resolution & autocomplete
    • Asset resolution & autocomplete
  • And much more to come :3

About

Language server for editing ritobin files

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages