feat(lsp): replace jedi+pyright with pyrefly+ruff

This commit is contained in:
2025-05-21 06:44:46 +02:00
parent efe14244e0
commit 543e04b2bb
4 changed files with 46 additions and 191 deletions
-27
View File
@@ -1,27 +0,0 @@
---@type ServerConfig
return {
enable = true,
mason = { "pyright" },
lspconfig = {
filetypes = {
"python",
},
cmd = { "pyright-langserver", "--stdio" },
single_file_support = true,
-- https://microsoft.github.io/pyright/#/settings
settings = {
python = {
analysis = {
autoSearchPaths = true,
diagnosticMode = "openFilesOnly",
useLibraryCodeForTypes = true,
typeCheckingMode = "strict",
stubPath = "stubs",
},
},
pyright = {
disableLanguageServices = true,
},
},
},
}