diff --git a/ftplugin/javascript/jsdoc.vim b/ftplugin/javascript/jsdoc.vim index f7a7f11..5875d54 100644 --- a/ftplugin/javascript/jsdoc.vim +++ b/ftplugin/javascript/jsdoc.vim @@ -14,7 +14,6 @@ if !has('nvim') && (!has('channel') || !has('job')) finish endif -" command! -nargs=0 -buffer -complete=customlist,jsdoc#insert JsDoc call jsdoc#insert() command! -nargs=0 -range=0 -complete=customlist,jsdoc#insert JsDoc call jsdoc#insert(, , , ) command! -nargs=0 -complete=customlist,jsdoc#format JsDocFormat call jsdoc#format() nnoremap (jsdoc) :call jsdoc#insert() diff --git a/ftplugin/typescript/jsdoc.vim b/ftplugin/typescript/jsdoc.vim index f7a7f11..5875d54 100644 --- a/ftplugin/typescript/jsdoc.vim +++ b/ftplugin/typescript/jsdoc.vim @@ -14,7 +14,6 @@ if !has('nvim') && (!has('channel') || !has('job')) finish endif -" command! -nargs=0 -buffer -complete=customlist,jsdoc#insert JsDoc call jsdoc#insert() command! -nargs=0 -range=0 -complete=customlist,jsdoc#insert JsDoc call jsdoc#insert(, , , ) command! -nargs=0 -complete=customlist,jsdoc#format JsDocFormat call jsdoc#format() nnoremap (jsdoc) :call jsdoc#insert() diff --git a/test/flow.js b/test/flow.js deleted file mode 100644 index e6ce2a8..0000000 --- a/test/flow.js +++ /dev/null @@ -1,23 +0,0 @@ -// @flow -function foo(arg1 :string, arg2: number): string { - return '' -} - -interface Foo { - foo: string -} - -type Bar = { - bar: number -} - -class FooBar { - props: Bar - - foo (arg1: string, arg2: any): void { - } - - bar (arg1: number, arg2: Foo): any { - return - } -} diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 3f13919..0000000 --- a/test/test.js +++ /dev/null @@ -1,42 +0,0 @@ -/*eslint-env es6*/ -// ES6 generator function - -var anonymousGeneratorFunctionExpression = function* (arg1, arg2) {}; - -var namedGeneratorFunctionExpression = function* namedGenerator(arg1, arg2) {}; - -var anonymousFunctionExpression = function (arg1, arg2) {}; - -var namedFunctionExpression = function namedExpression(el, $jq) {} - -var arrowFunction = (foo, bar) => { }; - -var arrowFunctionSingle = foo => {}; - -function namedFunctionDeclaration(_a2, err) { } - -function* namedGeneratorFunc(data) { } - -function defaultParams(arg, arg1 = 'foo', arg2 = 100) {} - -const namespace = {}; - -namespace.x0 = function (e) { }; // anonymous method - -namespace.x1 = (e) => { }; // anonymous method shorthand - -namespace.x2 = function* (e) { }; // anonymous method generator - -namespace.x3 = function testing(e) { }; // named method - -namespace.x4 = function* testgen(description) { }; // named method generator - -namespace.x5 = foo => { }; // anonymous method shorthand - -class Foo { - static foo(bar, baz) { } // static method - - bar(aaa, bb, ccc) { } // shorthand method -} - -class Foo extends Bar { } diff --git a/test/test.ts b/test/test.ts deleted file mode 100644 index 0dc2b12..0000000 --- a/test/test.ts +++ /dev/null @@ -1,48 +0,0 @@ -function foo(foo: string = 'foo', bar: number = 1): string { - return 'foo' -} - -function bar() : any { -} - -function _baz() :number{ - return 1 -} - -function union(): number | string { - return 'foo' -} - -interface IFoo { - foo?: string -} - -interface InterfaceBar extends IFoo { -} - -class Foo { -} - -class Bar extends Foo implements IFoo { - private foo: number - bar: string - constructor(private arg1: string, public arg2: string) { - super() - } - private foo(arg1: string, arg2: number = 0): void { - } - public _bar(): void { - } - public baz(arg1: string = 'foo', arg2: number = 100): void { - } -} - -class Baz extends Foo implements IFoo { -} - -function ifoo(): IFoo { - return new Bar('foo', 'bar') -} - -function list(args: Array): void { -}