heavenshell / vim-jsdoc

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

How to use the interactive mode in 2.0.0? #96

Closed IonicaBizau closed 4 years ago

IonicaBizau commented 4 years ago

It is unclear to me how to use the snippet plugin.

Before I was using the global variable, but after upgrading to 2.0.0, I can't seem to figure it out.

heavenshell commented 4 years ago

@IonicaBizau Hi, You meant something like this? Kapture 2020-08-25 at 22 58 33

I use neosnippet(sorry I don't know about other snippet plugin) and this template.

IonicaBizau commented 4 years ago

But where should I put the template you linked? Thank you!

heavenshell commented 4 years ago

Wherever you want to put 😉

Set following to your vimrc.

let g:jsdoc_templates_path = '/path/to/snippet_template.js'

or

let g:jsdoc_templates_path = expand('~/path/to/snippet_template.js')
IonicaBizau commented 4 years ago

Thank you! :) That works!

heavenshell commented 4 years ago

welcome 😊

duckscofield commented 2 years ago

Hi all, I use the UltiSnips plugin, is there a case available?