File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ describe('Neovim API', () => {
8686
8787 it ( 'can run lua' , async ( ) => {
8888 expect (
89- await nvim . lua ( 'function test(a) return a end return test(...)' , 1 )
89+ await nvim . lua ( 'function test(a) return a end return test(...)' , [ 1 ] )
9090 ) . toBe ( 1 ) ;
9191
9292 expect (
Original file line number Diff line number Diff line change @@ -448,17 +448,17 @@ export class Neovim extends BaseApi {
448448 }
449449
450450 /**
451- * Executes lua, it's possible neovim client does not support this
451+ * Executes Lua code.
452452 */
453- lua ( code : string , args : VimValue [ ] = [ ] ) : Promise < object > {
453+ lua ( code : string , args : VimValue [ ] = [ ] ) : Promise < VimValue > {
454454 const _args = Array . isArray ( args ) ? args : [ args ] ;
455455 return this . request ( `${ this . prefix } execute_lua` , [ code , _args ] ) ;
456456 }
457457
458458 /**
459459 * Alias for `lua()` to be consistent with neovim API
460460 */
461- executeLua ( code : string , args : VimValue [ ] = [ ] ) : Promise < object > {
461+ executeLua ( code : string , args : VimValue [ ] = [ ] ) : ReturnType < typeof this . lua > {
462462 return this . lua ( code , args ) ;
463463 }
464464
You can’t perform that action at this time.
0 commit comments