From 4dccd8145218f40a85ebacdc5a3400c40ef0308d Mon Sep 17 00:00:00 2001 From: Salar Rahmanian Date: Sat, 31 Aug 2024 09:13:32 -0700 Subject: [PATCH] replace pyright with basedpyright --- lua/plugins/lsp.lua | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index e661549..3a1a95e 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -75,13 +75,21 @@ return { jsonls = {}, marksman = {}, nil_ls = {}, - pyright = { + basedpyright = { python = { analysis = { autoImportCompletions = true, autoSearchPaths = true, - diagnosticMode = "openFilesOnly", - typeCheckingMode = "basic", + diagnosticMode = "workspace", + reportMissingImports = true, + reportMissingParameterType = true, + reportUnnecessaryComparison = true, + reportUnnecessaryContains = true, + reportUnusedClass = true, + reportUnusedFunction = true, + reportUnsedImports = true, + reportUnsusedVariables = true, + typeCheckingMode = "all", useLibraryCodeForTypes = true, }, }, -- 2.46.1