" Set the fold method to indent for python code au BufNewFile,BufRead *.py \ setlocal foldmethod=indent \ nospell " register pyls as a language server. if executable('pyls') " pip install python-language-server au User lsp_setup call lsp#register_server({ \ 'name': 'pyls', \ 'cmd': {server_info->['pyls']}, \ 'allowlist': ['python'], \ }) endif