From 842d9fbc2d39718943b5cf768996a0dcf1b04ffe Mon Sep 17 00:00:00 2001 From: Ben Jackson Date: Fri, 19 Mar 2021 17:50:29 +0000 Subject: [PATCH] Config for pyright language server --- .ycm_extra_conf.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.ycm_extra_conf.py b/.ycm_extra_conf.py index f2e32ae3..6f425051 100644 --- a/.ycm_extra_conf.py +++ b/.ycm_extra_conf.py @@ -42,7 +42,17 @@ def Settings( **kwargs ): return { 'sys_path': [ p.join( PATH_TO_THIS_DIR, 'python3' ) - ] + ], + 'ls': { + 'python': { + 'analysis': { + 'extraPaths': [ + p.join( PATH_TO_THIS_DIR, 'python3' ), + ], + 'useLibraryCodeForTypes': True + } + } + } } if IgnoreExtraConf: