heavenshell / vim-pydocstring

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

Pydocstring don't add "param:" #60

Closed Imane0 closed 5 years ago

Imane0 commented 5 years ago

I have installed Pydocstring with Vundle (below of this message there is a copy paste of my whole .vimrc file). When I define a class, put the cursor at the end of the definition of this class (at the colon), and write :Pydocstring, only the template of the description appears, the list of arguments that I add to the class are not listed. Below an example of what happens in my console. pp :param arg1: and :param arg2: are not automatically added by Pydocstring

I have VIM version 8.1.177, and I'm up to date with the master branch of Pydocstring.

My .vimrc :

set nocompatible              " required

filetype off                  " required

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')

" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'

" add all your plugins here (note older versions of Vundle
" used Bundle instead of Plugin)

Plugin 'w0rp/ale'
Plugin 'nvie/vim-flake8'
Plugin 'google/yapf'
Plugin 'Valloric/YouCompleteMe'
Plugin 'vim-scripts/indentpython.vim'
Plugin 'heavenshell/vim-pydocstring'

" All of your Plugins must be added before the following line
call vundle#end()            " required
filetype plugin indent on    " required

set encoding=utf-8
hi pythonSelf  ctermfg=68  guifg=#5f87d7 cterm=bold gui=bold
" Enable folding
set foldmethod=indent
set foldlevel=99
" Enable folding with the spacebar
noremap <space> za

" PEP8 indentation
au BufNewFile,BufRead *.test set tabstop=4
      \softtabstop=4
      \shiftwidth=4
      \textwidth=80
      \expandtab
      \autoindent
      \fileformat=unix

set wrap
set textwidth=80

let python_highlight_all=1
syntax on
set ruler "for column numbers

" Set this. Airline will handle the rest.
let g:airline#extensions#ale#enabled = 1
"let g:ale_sign_column_always = 1
"let g:ycm_python_binary_path = '~/anaconda3/bin/python'
"let g:ycm_python_binary_path = '~/anaconda2/bin/python'

"split navigations
set splitbelow
set splitright
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
Imane0 commented 5 years ago

My issue is not relevant. Sorry !

heavenshell commented 5 years ago

No problem! ☺️