Skip to content

Commit 6580181

Browse files
committed
Updated automated installation and activation of vim-pydocstrings
1 parent 36dc8e2 commit 6580181

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

init.vim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Plug 'junegunn/fzf.vim'
4242
Plug 'sheerun/vim-polyglot'
4343
Plug 'chrisbra/Colorizer'
4444
Plug 'KabbAmine/vCoolor.vim'
45-
Plug 'heavenshell/vim-pydocstring'
45+
Plug 'heavenshell/vim-pydocstring', { 'do': 'make install' }
4646
Plug 'vim-scripts/loremipsum'
4747
Plug 'SirVer/ultisnips'
4848
Plug 'honza/vim-snippets'
@@ -109,6 +109,9 @@ let g:deoplete#enable_at_startup = 1
109109
" Disable documentation window
110110
set completeopt-=preview
111111

112+
" vim-pydocstring
113+
let g:pydocstring_doq_path = '~/.config/nvim/env/bin/doq'
114+
112115
" Supertab
113116
let g:SuperTabDefaultCompletionType = "<C-n>"
114117

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ python3 -m venv ~/.config/nvim/env
1616
# Install pip modules for Neovim within the virtual environment created
1717
echo '[*] Activating virtualenv and pip installing Neovim (for Python plugin support), libraries for async autocompletion support (jedi, psutil, setproctitle), and library for pep8-style formatting (yapf) ...'
1818
source ~/.config/nvim/env/bin/activate
19-
pip install pynvim jedi psutil setproctitle yapf # run `pip uninstall neovim pynvim` if still using old neovim module
19+
pip install pynvim jedi psutil setproctitle yapf doq # run `pip uninstall neovim pynvim` if still using old neovim module
2020
deactivate
2121

2222
# Install vim-plug plugin manager

0 commit comments

Comments
 (0)