Files
nvim/python.vim
2021-10-23 15:22:14 +02:00

15 lines
397 B
VimL

" 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