aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-03-25 23:15:54 +0800
committerjdhao <jdhao@hotmail.com>2021-03-25 23:15:54 +0800
commit41a2d1b950fc1eae69f8937d5765939ec725acaf (patch)
treefead73fd7c16dc38c84076fa1595faefeb086441
parentcabb5b7604c5424b4f094c0abef28969074fab13 (diff)
update Python settings and related doc
-rw-r--r--core/plugins.vim2
-rwxr-xr-xdocs/Nvim_setup.sh2
-rw-r--r--docs/README.md2
3 files changed, 4 insertions, 2 deletions
diff --git a/core/plugins.vim b/core/plugins.vim
index c9c051b..ab15b36 100644
--- a/core/plugins.vim
+++ b/core/plugins.vim
@@ -405,6 +405,8 @@ if executable('pyls')
\ 'pyflakes': {'enabled': v:false},
\ 'pycodestyle': {'enabled': v:false},
\ 'jedi_completion': {'fuzzy': v:true},
+ \ 'pyls_isort': {'enabled': v:true},
+ \ 'pyls_mypy': {'enabled': v:true}
\ }
\ }
\ }})
diff --git a/docs/Nvim_setup.sh b/docs/Nvim_setup.sh
index a6cbebd..5edb844 100755
--- a/docs/Nvim_setup.sh
+++ b/docs/Nvim_setup.sh
@@ -68,7 +68,7 @@ fi
# Install some Python packages used by Neovim plugins.
echo "Installing Python packages"
-declare -a py_packages=("pynvim" 'python-language-server[all]' "black" "vim-vint")
+declare -a py_packages=("pynvim" 'python-language-server[all]' "black" "vim-vint" "pyls-isort" "pyls-mypy")
if [[ "$SYSTEM_PYTHON" = true ]]; then
echo "Using system Python to install $(PY_PACKAGES)"
diff --git a/docs/README.md b/docs/README.md
index 526c75e..5557b4b 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -24,7 +24,7 @@ plugins that utilize its Python binding. Pynvim is required by plugins such as
Server for completion, linting, go to definition, etc.
```
-pip install "python-language-server[all]"
+pip install "python-language-server[all]" pyls-isort pyls-mypy
```
## Git