From b69b5c31937a6357266e1db423eff66753a16c0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Tue, 19 Mar 2024 00:55:36 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20config(nvim):=20add=20some?= =?UTF-8?q?=20pyright=20options=20to=20show=20diagnostics=20and=20search?= =?UTF-8?q?=20on=20only=20the=20open=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lua/plugins/extras/lang/python-extended.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.config/nvim/lua/plugins/extras/lang/python-extended.lua b/.config/nvim/lua/plugins/extras/lang/python-extended.lua index b4ab26b7..e51ac712 100644 --- a/.config/nvim/lua/plugins/extras/lang/python-extended.lua +++ b/.config/nvim/lua/plugins/extras/lang/python-extended.lua @@ -5,6 +5,21 @@ return { "neovim/nvim-lspconfig", opts = { servers = { + pyright = { + settings = { + verboseOutput = true, + autoImportCompletion = true, + python = { + analysis = { + typeCheckingMode = "strict", + autoSearchPaths = true, + useLibraryCodeForTypes = true, + diagnosticMode = "openFilesOnly", + indexing = true, + }, + }, + }, + }, ruff_lsp = { handlers = { ["textDocument/publishDiagnostics"] = function() end,