diff --git a/lua/configs/lspconfig.lua b/lua/configs/lspconfig.lua index b3f5e5d..94808db 100644 --- a/lua/configs/lspconfig.lua +++ b/lua/configs/lspconfig.lua @@ -135,6 +135,17 @@ function M.config() -- pip install pyright lspconfig.pyright.setup { on_attach = on_attach, + settings = { + -- https://github.com/microsoft/pyright/blob/main/docs/settings.md + python = { + autoSearchPaths = true, + autoImportCompletion = true, + diagnosticMode = 'openFilesOnly', -- workspace | openFilesOnly + useLibraryCodeForTypes = true, + -- typeCheckingMode = '...' -- off | basic | strict + -- venvPath = '...' + } + } } -- vscode-json-language-server