heavenshell / vim-pydocstring

Generate Python docstring to your Python source code.
BSD 3-Clause "New" or "Revised" License
337 stars 53 forks source link

Custom template not found #101

Closed StotoV closed 4 years ago

StotoV commented 4 years ago

I created my own template at ~/.vim/syntax/pydoc and specfied that in my vimrc with the following; let g:pydocstring_template_path = '~/.vim/syntax/pydocs'. In the dir I created I have a class.txt, def.txt and noarg.txt.

However, whenever I execute the :Pydocstring the default template is used.

Vim version 8.2.500

heavenshell commented 4 years ago

Sorry, had a typo... https://github.com/heavenshell/vim-pydocstring/pull/102/files

Please try let g:pydocstring_templates_path = '~/.vim/syntax/pydocs'

StotoV commented 4 years ago

Yep that fixed it, thanks!