diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 3a1a95e..65122c4 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -76,22 +76,20 @@ return { marksman = {}, nil_ls = {}, basedpyright = { - python = { - analysis = { - autoImportCompletions = true, - autoSearchPaths = true, - diagnosticMode = "workspace", - reportMissingImports = true, - reportMissingParameterType = true, - reportUnnecessaryComparison = true, - reportUnnecessaryContains = true, - reportUnusedClass = true, - reportUnusedFunction = true, - reportUnsedImports = true, - reportUnsusedVariables = true, - typeCheckingMode = "all", - useLibraryCodeForTypes = true, - }, + analysis = { + autoImportCompletions = true, + autoSearchPaths = true, + diagnosticMode = "openFilesOnly", + reportMissingImports = true, + reportMissingParameterType = true, + reportUnnecessaryComparison = true, + reportUnnecessaryContains = true, + reportUnusedClass = true, + reportUnusedFunction = true, + reportUnsedImports = true, + reportUnsusedVariables = true, + typeCheckingMode = "all", + useLibraryCodeForTypes = true, }, }, rust_analyzer = {