#ui-toolkit #lsp #toolkit #ui

bin+lib slint-lsp

A language server protocol implementation for Slint

27 releases (15 stable)

1.5.1 Mar 20, 2024
1.4.1 Feb 2, 2024
1.3.2 Dec 1, 2023
1.3.1 Nov 28, 2023
0.2.1 Mar 10, 2022

#131 in GUI

Download history 10/week @ 2023-12-30 39/week @ 2024-01-06 58/week @ 2024-01-13 41/week @ 2024-01-20 111/week @ 2024-01-27 71/week @ 2024-02-03 44/week @ 2024-02-10 56/week @ 2024-02-17 73/week @ 2024-02-24 35/week @ 2024-03-02 500/week @ 2024-03-09 457/week @ 2024-03-16 68/week @ 2024-03-23 67/week @ 2024-03-30 28/week @ 2024-04-06 17/week @ 2024-04-13

202 downloads per month


49K SLoC

LSP (Language Server Protocol) Server for Slint

This directory contains the implementation of the LSP server for Slint featuring diagnostics, code completion, goto definition, and more importantly, live-preview

Generic usage

The LSP server consists of a binary, slint-lsp (or slint-lsp.exe on Windows). It provides all the functionality and allows any programming editor that also implements the standardized LSP protocol to communicate with it.

If you have Rust installed, you can install the binary by running the following command:

cargo install slint-lsp

This makes the latest released version available in $HOME/.cargo/bin. If you would like to try a development version, you can also point cargo install to the git repository: for the released version. Or, to install the develoment version:

cargo install slint-lsp --git https://github.com/slint-ui/slint --force

Alternatively, you can download one of our pre-built binaries for Linux or Windows:

  1. Open https://github.com/slint-ui/slint/releases
  2. Click on the latest release
  3. From "Assets" download either slint-lsp-linux.tar.gz for a Linux x86-64 binary or slint-lsp-windows.zip for a Windows x86-64 binary.
  4. Uncompress the downloaded archive into a location of your choice.

As the next step, configure your editor to use the binary, no arguments are required

Code formatting

The slint code formatting tool is part of the lsp. To learn how to use it as a standalone tool, see fmt README

Editor configuration

Please check the editors folder in the Slint repository for instructions on how to set up different editors to work with Slint.


~826K SLoC