mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-15 15:07:48 +00:00
Merge pull request #1340 from pyrox0/feat/pyrefly
languages/python: support pyrefly
This commit is contained in:
commit
74697fca13
2 changed files with 17 additions and 0 deletions
|
|
@ -132,6 +132,8 @@
|
||||||
|
|
||||||
- Added [sqruff](https://github.com/quarylabs/sqruff) support to `languages.sql`
|
- Added [sqruff](https://github.com/quarylabs/sqruff) support to `languages.sql`
|
||||||
|
|
||||||
|
- Added [Pyrefly](https://pyrefly.org/) support to `languages.python`
|
||||||
|
|
||||||
[Machshev](https://github.com/machshev):
|
[Machshev](https://github.com/machshev):
|
||||||
|
|
||||||
- Added `ruff` and `ty` LSP support for Python under `programs.python`.
|
- Added `ruff` and `ty` LSP support for Python under `programs.python`.
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,21 @@
|
||||||
|
|
||||||
defaultServers = ["basedpyright"];
|
defaultServers = ["basedpyright"];
|
||||||
servers = {
|
servers = {
|
||||||
|
pyrefly = {
|
||||||
|
enable = true;
|
||||||
|
cmd = [(getExe pkgs.pyrefly) "server"];
|
||||||
|
filetypes = ["python"];
|
||||||
|
root_markers = [
|
||||||
|
"pyproject.toml"
|
||||||
|
"pyrefly.toml"
|
||||||
|
"setup.py"
|
||||||
|
"setup.cfg"
|
||||||
|
"requirements.txt"
|
||||||
|
"Pipfile"
|
||||||
|
".git"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
pyright = {
|
pyright = {
|
||||||
enable = true;
|
enable = true;
|
||||||
cmd = [(getExe' pkgs.pyright "pyright-langserver") "--stdio"];
|
cmd = [(getExe' pkgs.pyright "pyright-langserver") "--stdio"];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue