fix: replace pylint with pyright

This commit is contained in:
2025-04-09 08:56:18 +02:00
parent d2d25a3c63
commit cdb61c3440
2 changed files with 26 additions and 26 deletions
+26
View File
@@ -0,0 +1,26 @@
---@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",
},
},
pyright = {
disableLanguageServices = true,
},
},
},
}