aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig
diff options
context:
space:
mode:
authorPhúc H. Lê Khắc <phuc@lkhphuc.com>2023-09-11 15:13:31 +0200
committerGitHub <noreply@github.com>2023-09-11 06:13:31 -0700
commit29d84e20dfbfbd738c13a26701e2cfcb37cf4935 (patch)
treefef002f67f73cb8c1a9e4d4d5e14fdd91e03f266 /lua/lspconfig
parentfix(jedi): .git/ can decide root dir #2780 (diff)
downloadnvim-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/lspconfig')
-rw-r--r--lua/lspconfig/server_configurations/pyright.lua2
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',
},
},
},