Skip to content

Commit afec940

Browse files
committed
fix(config): add correct types to on_attach and capabilities
1 parent e160037 commit afec940

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/astrolsp/config.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
--- }
5252
---}
5353
---```
54-
---@field capabilities table?
54+
---@field capabilities lsp.ClientCapabilities?
5555
---Configure language servers for `lspconfig` (`:h lspconfig-setup`)
5656
---Example:
5757
--
@@ -182,7 +182,7 @@
182182
--- client.server_capabilities.semanticTokensProvider = nil
183183
---end
184184
---```
185-
---@field on_attach fun(client:table,bufnr:integer)?
185+
---@field on_attach fun(client:lsp.Client,bufnr:integer)?
186186

187187
---@type AstroLSPOpts
188188
local M = {

0 commit comments

Comments
 (0)