Skip to content

Fix filetype on #134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 21, 2021
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