pyright tuning configuration
This commit is contained in:
parent
662ad35034
commit
86cfb979ec
@ -135,6 +135,17 @@ function M.config()
|
|||||||
-- pip install pyright
|
-- pip install pyright
|
||||||
lspconfig.pyright.setup {
|
lspconfig.pyright.setup {
|
||||||
on_attach = on_attach,
|
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
|
-- vscode-json-language-server
|
||||||
|
Loading…
Reference in New Issue
Block a user