@@ -337,7 +337,7 @@ function! copilot#agent#LspResponse(agent_id, opts, ...) abort
337337endfunction
338338
339339function ! s: LspRequest (method, params, ... ) dict abort
340- let id = v: lua .require' _copilot' .lsp_request (self .id, a: method , a: params )
340+ let id = eval ( " v:lua.require'_copilot'.lsp_request(self.id, a:method, a:params) " )
341341 if id isnot # v: null
342342 return call (' s:SetUpRequest' , [self , id, a: method , a: params ] + a: 000 )
343343 endif
@@ -355,7 +355,7 @@ function! s:LspClose() dict abort
355355endfunction
356356
357357function ! s: LspNotify (method, params) dict abort
358- return v: lua .require' _copilot' .rpc_notify (self .id, a: method , a: params )
358+ return eval ( " v:lua.require'_copilot'.rpc_notify(self.id, a:method, a:params) " )
359359endfunction
360360
361361function ! copilot#agent#LspHandle (agent_id, request) abort
@@ -526,7 +526,7 @@ function! copilot#agent#New(...) abort
526526 \ ' Close' : function (' s:LspClose' ),
527527 \ ' Notify' : function (' s:LspNotify' ),
528528 \ ' Request' : function (' s:LspRequest' )})
529- let instance.client_id = v: lua .require' _copilot' .lsp_start_client (command , keys (instance.methods))
529+ let instance.client_id = eval ( " v:lua.require'_copilot'.lsp_start_client(command, keys(instance.methods)) " )
530530 let instance.id = instance.client_id
531531 else
532532 let state = {' headers' : {}, ' mode' : ' headers' , ' buffer' : ' ' }
0 commit comments