aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorPeter Lithammer <peter.lithammer@gmail.com>2020-12-01 17:57:17 +0100
committerMatthieu Coudron <teto@users.noreply.github.com>2020-12-03 18:01:20 +0100
commit76f11625481eddb7bcbf86b3e4f592a1aef35b37 (patch)
treec60cb0a272a9677383e5ebe75ff0362bd22001e0 /lua
parentMerge pull request #366 from Ogromny/zls_support (diff)
downloadnvim-lspconfig-76f11625481eddb7bcbf86b3e4f592a1aef35b37.tar
nvim-lspconfig-76f11625481eddb7bcbf86b3e4f592a1aef35b37.tar.gz
nvim-lspconfig-76f11625481eddb7bcbf86b3e4f592a1aef35b37.tar.bz2
nvim-lspconfig-76f11625481eddb7bcbf86b3e4f592a1aef35b37.tar.lz
nvim-lspconfig-76f11625481eddb7bcbf86b3e4f592a1aef35b37.tar.xz
nvim-lspconfig-76f11625481eddb7bcbf86b3e4f592a1aef35b37.tar.zst
nvim-lspconfig-76f11625481eddb7bcbf86b3e4f592a1aef35b37.zip
pyright: Wrap settings correctly with python.analysis
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/pyright.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/lua/lspconfig/pyright.lua b/lua/lspconfig/pyright.lua
index d2b22944..768663db 100644
--- a/lua/lspconfig/pyright.lua
+++ b/lua/lspconfig/pyright.lua
@@ -15,8 +15,12 @@ configs[server_name] = {
filetypes = {"python"};
root_dir = util.root_pattern(".git", "setup.py", "setup.cfg", "pyproject.toml", "requirements.txt");
settings = {
- analysis = { autoSearchPaths= true; };
- pyright = { useLibraryCodeForTypes = true; };
+ python = {
+ analysis = {
+ autoSearchPaths = true;
+ useLibraryCodeForTypes = true;
+ };
+ };
};
};
docs = {