Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions doc/jsdoc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,17 @@ g:jsdoc_return_description *g:jsdoc_return_description*

Default value is '1'

g:jsdoc_default_mapping g:jsdoc_default_mapping
Automatically map to <C-l>

Default value is '1'

==============================================================================
CHANGELOG *jsdoc-changelog*
2013-07-07
- Add g:jsdoc_default_mapping option, making it possible to prevent automatic
<C-l> mapping.

2013-05-30
- Fix @return tag is only added g:jsdoc_allow_input_prompt enabled
(thx @thomasbelin4)
Expand Down
5 changes: 4 additions & 1 deletion ftplugin/javascript/jsdoc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ set cpo&vim

command! -nargs=0 -buffer -complete=customlist,jsdoc#insert JsDoc call jsdoc#insert()

if !exists('g:jsdoc_default_mapping')
let g:jsdoc_default_mapping = 1
endif
nnoremap <silent> <buffer> <Plug>(jsdoc) :call jsdoc#insert()<CR>
if !hasmapto('<Plug>(jsdoc)')
if !hasmapto('<Plug>(jsdoc)') && g:jsdoc_default_mapping
nmap <silent> <C-l> <Plug>(jsdoc)
endif

Expand Down