From cce1faff2ba70044a6657ee78cd3ddbaeac773f1 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 4 Jul 2020 14:00:43 +0200 Subject: [PATCH] vim: Add pyls --- home/.config/nvim/init.vim | 1 + home/.pipx.sh | 27 ++++++++++++++------------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/home/.config/nvim/init.vim b/home/.config/nvim/init.vim index 89958ed..4188b1e 100644 --- a/home/.config/nvim/init.vim +++ b/home/.config/nvim/init.vim @@ -98,6 +98,7 @@ set hidden let g:LanguageClient_serverCommands = { \ 'rust': ['~/.cargo/bin/rustup', 'run', 'stable', 'rls'], \ 'go': ['gopls'], + \ 'python': ['pyls'], \ } let g:LanguageClient_settingsPath = '~/.config/nvim/LanguageClient.json' diff --git a/home/.pipx.sh b/home/.pipx.sh index 644a419..cd53304 100755 --- a/home/.pipx.sh +++ b/home/.pipx.sh @@ -1,17 +1,18 @@ #!/bin/zsh for module in \ -aria2p \ -autorandr \ -black \ -docker-compose \ -esptool \ -pipenv \ -platformio \ -pre-commit \ -xkcdpass \ -xq \ -youtube-dl -yq \ + 'python-language-server[pyflakes,rope]' \ + aria2p \ + autorandr \ + black \ + docker-compose \ + esptool \ + pipenv \ + platformio \ + pre-commit \ + xkcdpass \ + xq \ + youtube-dl \ + yq do - pipx install --force "${module}" + pipx install "${module}" || true done