Skip to content

Commit

Permalink
replace pyls with pylsp for python 3.11 support
Browse files Browse the repository at this point in the history
  • Loading branch information
jayli committed Jan 7, 2024
1 parent 81c83e7 commit 408ef21
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ All supported languages:
More info about semantic completion for each supported language:

- JavaScript & TypeScript: [tsserver](https://github.com/microsoft/TypeScript) required.
- Python: [pylsp](https://github.com/palantir/python-language-server) required. (`pip install python-language-server`)
- Python: There are 2 avilable python-language-server branches:
- [pyls](https://github.com/palantir/python-language-server) support python 3.5 ~ 3.10 ([pyls breaks autocomplete on Python 3.11](https://github.com/palantir/python-language-server/issues/959)), `pip3 install python-language-server`
- [pylsp](https://github.com/python-lsp/python-lsp-server) work well with python 3.11, `pip3 install python-lsp-server`, (Recommend)
- Go: [gopls](https://github.com/golang/tools/tree/master/gopls) required. (`go get golang.org/x/tools/gopls`)
- Vim Script: [vimls](https://github.com/iamcco/vim-language-server) required.
- C++/C/OC:[Clangd](https://github.com/clangd/clangd) required.
Expand Down
2 changes: 1 addition & 1 deletion autoload/easycomplete/installer/py.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

set -e

"$(dirname "$0")/pip_install.sh" pyls python-language-server
"$(dirname "$0")/pip_install.sh" pylsp python-lsp-server
2 changes: 1 addition & 1 deletion plugin/easycomplete.vim
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ augroup easycomplete#PluginRegister
\ 'completor': 'easycomplete#sources#py#completor',
\ 'constructor' :'easycomplete#sources#py#constructor',
\ 'gotodefinition': 'easycomplete#sources#py#GotoDefinition',
\ 'command': 'pyls'
\ 'command': 'pylsp'
\ })

au User easycomplete_default_plugin call easycomplete#RegisterSource({
Expand Down

0 comments on commit 408ef21

Please sign in to comment.