pyright tuning configuration

This commit is contained in:
Michael Peters 2022-10-26 17:40:15 -07:00
parent 662ad35034
commit 86cfb979ec

View File

@ -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