diff options
| author | Phúc H. Lê Khắc <phuc@lkhphuc.com> | 2023-09-11 15:13:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-11 06:13:31 -0700 |
| commit | 29d84e20dfbfbd738c13a26701e2cfcb37cf4935 (patch) | |
| tree | fef002f67f73cb8c1a9e4d4d5e14fdd91e03f266 /lua | |
| parent | fix(jedi): .git/ can decide root dir #2780 (diff) | |
| download | nvim-lspconfig-29d84e20dfbfbd738c13a26701e2cfcb37cf4935.tar nvim-lspconfig-29d84e20dfbfbd738c13a26701e2cfcb37cf4935.tar.gz nvim-lspconfig-29d84e20dfbfbd738c13a26701e2cfcb37cf4935.tar.bz2 nvim-lspconfig-29d84e20dfbfbd738c13a26701e2cfcb37cf4935.tar.lz nvim-lspconfig-29d84e20dfbfbd738c13a26701e2cfcb37cf4935.tar.xz nvim-lspconfig-29d84e20dfbfbd738c13a26701e2cfcb37cf4935.tar.zst nvim-lspconfig-29d84e20dfbfbd738c13a26701e2cfcb37cf4935.zip | |
fix(pyright): change diagnosticMode to openFilesOnly #2783
When you go to definition of a library function, pyright will analyze the entire packages to report diagnostic information. This is extremely slow and heavy https://www.reddit.com/r/neovim/comments/135fqp9/why_is_pyright_constantly_analyzing_files_it/
Switch to the default value, similar to in VSCode.
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/pyright.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/server_configurations/pyright.lua b/lua/lspconfig/server_configurations/pyright.lua index 2f727418..0f92e1b4 100644 --- a/lua/lspconfig/server_configurations/pyright.lua +++ b/lua/lspconfig/server_configurations/pyright.lua @@ -42,7 +42,7 @@ return { analysis = { autoSearchPaths = true, useLibraryCodeForTypes = true, - diagnosticMode = 'workspace', + diagnosticMode = 'openFilesOnly', }, }, }, |
