heavenshell / vim-jsdoc

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

Unable to generate @public or @private #56

Closed tribou closed 8 years ago

tribou commented 8 years ago

I haven't been able to get @public or @private options generated using the following config:

let g:jsdoc_allow_input_prompt = 1
let g:jsdoc_input_description = 1
let g:jsdoc_access_descriptions = 2
let g:jsdoc_underscore_private = 1
let g:jsdoc_enable_es6 = 1

Is there supposed to be an additional prompt when using the :JsDoc command?

heavenshell commented 8 years ago

Sorry for late response.

Add following settings to my .vimrc.

let g:jsdoc_enable_es6 = 1
let g:jsdoc_allow_input_prompt = 1
let g:jsdoc_input_description = 1
let g:jsdoc_access_descriptions = 2
let g:jsdoc_underscore_private = 1
function _foo() {
} 

Type :JsDoc and generate like followings.

/**
 * _foo
 *
 * @private
 */
function _foo() {
} 

Could you show me steps to reproduce?

heavenshell commented 8 years ago

Not reproduced. If you reproduced, reopen this issue.