mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 06:41:14 +00:00
Add doc for Helix editor
This commit is contained in:
parent
63785fd262
commit
6da1d4f30d
1 changed files with 22 additions and 0 deletions
|
@ -91,6 +91,28 @@ In order to **preview a component**, when you have a .slint file open, place you
|
||||||
the name of the component you would like to preview and press *Alt + Enter* to open
|
the name of the component you would like to preview and press *Alt + Enter* to open
|
||||||
the code action menu. Select *Show Preview* from that menu.
|
the code action menu. Select *Show Preview* from that menu.
|
||||||
|
|
||||||
|
## Helix
|
||||||
|
|
||||||
|
To install the Slint Language server, check the [LSP README.md](../tools/lsp/README.md).
|
||||||
|
|
||||||
|
[Helix](https://helix-editor.com/) works out of the box without further configuration. To check if Helix detects Slint Language server successfully, run this command:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
hx --health slint
|
||||||
|
```
|
||||||
|
|
||||||
|
The output should be like:
|
||||||
|
|
||||||
|
```
|
||||||
|
Configured language servers:
|
||||||
|
✓ slint-lsp: /home/user/.local/bin/slint-lsp
|
||||||
|
Configured debug adapter: None
|
||||||
|
Configured formatter: None
|
||||||
|
Highlight queries: ✓
|
||||||
|
Textobject queries: ✓
|
||||||
|
Indent queries: ✓
|
||||||
|
```
|
||||||
|
|
||||||
## Vim
|
## Vim
|
||||||
|
|
||||||
To install the Slint Language server, check the [LSP README.md](../tools/lsp/README.md).
|
To install the Slint Language server, check the [LSP README.md](../tools/lsp/README.md).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue