Skip to content

Commit a62b42a

Browse files
committed
Add function and array to tab completion
1 parent a303e9f commit a62b42a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This plugin based on https://gist.github.com/3903772#file-jsdoc-vim written by [
1010
Depending on your configuration, jsdoc.vim will prompt for description, `@return` type and description. It will also prompt you for types and descriptions for each function `@param`.
1111

1212
Data type tab completion supported for parameter and return types
13-
* currently: `boolean`, `null`, `undefined`, `number`, `string`, `symbol`, `object`
13+
* currently: `boolean`, `null`, `undefined`, `number`, `string`, `symbol`, `object`, `function`, `array`
1414

1515
## Usage
1616

autoload/jsdoc.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ endif
6262

6363
" Return data types for argument type auto completion :)
6464
function! jsdoc#listDataTypes(A,L,P)
65-
let l:types = ['boolean', 'null', 'undefined', 'number', 'string', 'symbol', 'object']
65+
let l:types = ['boolean', 'null', 'undefined', 'number', 'string', 'symbol', 'object', 'function', 'array']
6666
return join(l:types, "\n")
6767
endfunction
6868

ftplugin/javascript/jsdoc.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" File: jsdoc.vim
22
" Author: NAKAMURA, Hisashi <https://github.com/sunvisor>
33
" Modifyed: Shinya Ohyanagi <sohyanagi@gmail.com>
4-
" Version: 0.3.0
4+
" Version: 0.3.1
55
" WebPage: http://github.com/heavenshell/vim-jsdoc/
66
" Description: Generate JSDoc to your JavaScript file.
77
" License: BSD, see LICENSE for more details.

0 commit comments

Comments
 (0)