Crates.io | slint-lsp |
lib.rs | slint-lsp |
version | 1.8.0 |
source | src |
created_at | 2022-02-10 08:04:23.824305 |
updated_at | 2024-09-23 11:49:52.216655 |
description | A language server protocol implementation for Slint |
homepage | https://slint.dev |
repository | https://github.com/slint-ui/slint |
max_upload_size | |
id | 530123 |
size | 949,739 |
This directory contains the implementation of the LSP server for Slint featuring diagnostics, code completion, goto definition, and more importantly, live-preview
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:
slint-lsp-linux.tar.gz
for a Linux x86-64 binary
or slint-lsp-windows.zip
for a Windows x86-64 binary.As the next step, configure your editor to use the binary, no arguments are required
The slint code formatting tool is part of the lsp. To learn how to use it as a standalone tool, see fmt README
Please check the editors folder in the Slint repository for instructions on how to set up different editors to work with Slint.