Skip to content

Commit b9102b8

Browse files
authored
Docs: add instructions for Pyrefly language server (#2612)
* Docs: add instructions for Pyrefly language server * Switch order
1 parent 74dbec3 commit b9102b8

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/src/language_servers.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,26 @@ Follow installation instructions on [LSP-pyright](https://github.com/sublimelsp/
582582
583583
Follow installation instructions on [LSP-pylsp](https://github.com/sublimelsp/LSP-pylsp).
584584
585+
### Pyrefly
586+
587+
> A fast Python type checker written in Rust.
588+
589+
1. Follow the instructions on the [Pyrefly website](https://pyrefly.org/en/docs/installation/) to install the `pyrefly` command-line tool.
590+
591+
2. Open `Preferences > Package Settings > LSP > Settings` and add the `"pyrefly"` client configuration to the `"clients"`:
592+
593+
```jsonc
594+
{
595+
"clients": {
596+
"pyrefly": {
597+
"enabled": true,
598+
"command": ["pyrefly", "lsp"],
599+
"selector": "source.python"
600+
}
601+
}
602+
}
603+
```
604+
585605
### LSP-ruff
586606
587607
> An extremely fast Python linter and code transformation tool, written in Rust.

0 commit comments

Comments
 (0)