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, }, },