feat(lsp): replace jedi+pyright with pyrefly+ruff
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
local util = require("lspconfig.util")
|
||||
|
||||
---@type ServerConfig
|
||||
return {
|
||||
dependencies = { "pyrefly" },
|
||||
lspconfig = {
|
||||
cmd = { "pyrefly", "lsp" },
|
||||
filetypes = { "python" },
|
||||
root_dir = util.root_pattern(
|
||||
"pyrefly.toml",
|
||||
"pyproject.toml",
|
||||
"setup.py",
|
||||
"setup.cfg",
|
||||
"requirements.txt",
|
||||
"Pipfile",
|
||||
".git"
|
||||
),
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user