From 3adcfdc0346546c102c370aa12549fafe2be5cb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Su=C3=A1rez?= Date: Mon, 3 May 2021 15:37:12 -0500 Subject: =?UTF-8?q?=E2=9C=A8=20=20Python=20analysis=20options=20(pyright)?= =?UTF-8?q?=20(#352)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/lsp/python-ls.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'lua/lsp') diff --git a/lua/lsp/python-ls.lua b/lua/lsp/python-ls.lua index 8cc8b222..f9af265e 100644 --- a/lua/lsp/python-ls.lua +++ b/lua/lsp/python-ls.lua @@ -8,7 +8,15 @@ require'lspconfig'.pyright.setup { signs = O.python.diagnostics.signs, underline = O.python.diagnostics.underline, update_in_insert = true - }) + }, + settings = { + python = { + analysis = { + typeCheckingMode = O.python.analysis.type_checking, + autoSearchPaths = O.python.analysis.auto_search_paths, + useLibraryCodeForTypes = O.python.analysis.use_library_code_types + } + } } } -- cgit v1.2.3