From a38588a3f50d9d4ff79f6591f7cc6ac14354ca66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Tue, 16 Apr 2024 22:33:32 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(nvim):=20add=20some=20options?= =?UTF-8?q?=20to=20the=20pyright=20lsp=20to=20hide=20some=20useless=20info?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/lua/plugins/extras/lang/python-extended.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.config/nvim/lua/plugins/extras/lang/python-extended.lua b/.config/nvim/lua/plugins/extras/lang/python-extended.lua index 3cee17bb..51202eb3 100644 --- a/.config/nvim/lua/plugins/extras/lang/python-extended.lua +++ b/.config/nvim/lua/plugins/extras/lang/python-extended.lua @@ -35,6 +35,12 @@ return { autoImportCompletion = true, python = { analysis = { + diagnosticSeverityOverrides = { + reportWildcardImportFromLibrary = "none", + reportUnusedImport = "information", + reportUnusedClass = "information", + reportUnusedFunction = "information", + }, typeCheckingMode = "strict", autoSearchPaths = true, useLibraryCodeForTypes = true,