Skip to content

Commit e2e1579

Browse files
committed
fix: type annotations for lsp callback
1 parent 2b055d7 commit e2e1579

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/crates/lsp.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function M.server(opts)
4040

4141
---@param method string
4242
---@param params any
43-
---@param callback fun(method: string?, params: any)
43+
---@param callback fun(error: any?, data: any?)
4444
---@param notify_reply_callback? fun(request_id: integer)
4545
---@return boolean
4646
---@return integer

0 commit comments

Comments
 (0)