-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add types for autocompletion with
lua_ls
- Loading branch information
Showing
3 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
---@meta | ||
|
||
---@class AstroLSPFeatureOpts | ||
---@field autoformat boolean? | ||
---@field codelens boolean? | ||
---@field diagnostics_mode integer? | ||
---@field inlay_hints boolean? | ||
---@field lsp_handlers boolean? | ||
---@field semantic_tokens boolean? | ||
|
||
---@class AstroLSPFormatOnSaveOpts | ||
---@field enabled boolean? | ||
---@field allow_filetypes string[]? | ||
---@field ignore_filetypes string[]? | ||
|
||
---@class AstroLSPFormatOpts | ||
---@field format_on_save boolean|AstroLSPFormatOnSaveOpts? | ||
---@field disabled string[]? | ||
---@field timeout_ms integer? | ||
---@field filter (fun(client):boolean)? | ||
|
||
---@class AstroLSPConfig | ||
---@field features AstroLSPFeatureOpts? | ||
---@field capabilities table? | ||
---@field config lspconfig.options? | ||
---@field diagnostics table? | ||
---@field flags table? | ||
---@field formatting AstroLSPFormatOpts? | ||
---@field handlers table<string|integer,fun(server:string,opts:_.lspconfig.options)|boolean?>? | ||
---@field mappings table<string,table<string,table|boolean>>? | ||
---@field servers string[]? | ||
---@field on_attach fun(client,bufnr)? |
4d960a7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://astrolsp.astronvim.com as production
🚀 Deployed on https://64cad73525bdb00bc78f4acf--zesty-daffodil-898349.netlify.app