Skip to content

Commit

Permalink
docs: add missing AstroLSPMappings type
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Oct 30, 2024
1 parent 2f6b0a4 commit b65235d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lua/astrolsp/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@
---@alias AstroLSPCondition string|boolean|fun(client:vim.lsp.Client,bufnr:integer):boolean conditional for doing something when attaching a language server

---@class AstroLSPMapping: vim.api.keyset.keymap
---@field [1] string|function rhs of keymap
---@field [1] string|function? rhs of keymap
---@field name string? optional which-key mapping name
---@field cond AstroLSPCondition? condition for whether or not to set the mapping during language server attachment

---@alias AstroLSPMappings table<string,table<string,(AstroLSPMapping|string|false)?>?>

---@class AstroLSPCommand: vim.api.keyset.user_command
---@field [1] string|function the command to execute
---@field cond AstroLSPCondition? condition for whether or not to create the user command during language server attachment
Expand Down Expand Up @@ -235,7 +237,7 @@
--- }
---}
---```
---@field mappings table<string,table<string,(AstroLSPMapping|string|false)?>?>?
---@field mappings AstroLSPMappings?
---A list like table of servers that should be setup, useful for enabling language servers not installed with Mason.
---Example:
--
Expand Down

0 comments on commit b65235d

Please sign in to comment.