From 00741a1f18019d0b3592ac2a946cfcf04ad2f368 Mon Sep 17 00:00:00 2001 From: Salar Rahmanian Date: Sat, 31 Aug 2024 09:37:12 -0700 Subject: [PATCH] correction to basedpyright settings --- lua/plugins/lsp.lua | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) 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 = {