Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ This can be automated with vim-plug.

.. code::

Plug 'heavenshell/vim-pydocstring', { 'do': 'make install' }

Plug 'heavenshell/vim-pydocstring', { 'do': 'make install', 'for': 'python' }

If you want install doq manually, you can install from PyPi.

Expand All @@ -47,8 +46,8 @@ Then set installed `doq <https://pypi.org/project/doq/>`_ path:

.. code::

$ which doq
g:pydocstring_doq_path
$ which doq
let g:pydocstring_doq_path = path/to/doq

Note
~~~~
Expand All @@ -73,6 +72,7 @@ type `:PydocstringFormat` will insert all docstrings to current buffer.

Settings
--------

Pydocstring depends on ``shiftwidth`` if ``smarttab`` is set, otherwise
``softtabstop``. For the latter, you need to set like ``set softtabstop=4``.

Expand All @@ -88,6 +88,8 @@ Or:

autocmd FileType python setlocal tabstop=4 shiftwidth=4 softtabstop=4 expandtab

Pydocstring use ftplugin, so `filetype plugin on` required.

Key map
-------

Expand Down