heavenshell / vim-jsdoc

Generate JSDoc to your JavaScript code.
BSD 3-Clause "New" or "Revised" License
452 stars 44 forks source link

how to make :JsDoc append @author or @date automatically? #59

Closed onweer closed 8 years ago

onweer commented 8 years ago

how to make :JsDoc append @author or @date automatically?

heavenshell commented 8 years ago

Currently can't generate @author or @date.

But we should introduce something like user_defined_tags.

let g:jsdoc_user_defined_tags = [
\ {'@author': 'YOUR NAME'},
\ {'@date': strftime('%F')
\ ]

I'll add to my todo list.

onweer commented 8 years ago

Thanks !.

heavenshell commented 8 years ago

@onweer Try feature_user_defined_tags branch.

Set following settings to your .vimrc.

let g:jsdoc_user_defined_tags = {
  \ '@author': 'YOUR NAME',
  \ '@date': strftime('%F')
  \ }      
" }}}       
heavenshell commented 8 years ago

Merged to master https://github.com/heavenshell/vim-jsdoc/commit/e1ac68a52abc7d3a1fc6d613f696db142f295cdb