aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/types/lsp/luau_lsp.lua23
1 files changed, 23 insertions, 0 deletions
diff --git a/lua/lspconfig/types/lsp/luau_lsp.lua b/lua/lspconfig/types/lsp/luau_lsp.lua
index eea22e6a..7341f074 100644
--- a/lua/lspconfig/types/lsp/luau_lsp.lua
+++ b/lua/lspconfig/types/lsp/luau_lsp.lua
@@ -43,6 +43,26 @@
---```
---@field vectorType? string
+---@class _.lspconfig.settings.luau_lsp.LuauLsp.Completion.AnonymousAutofilledFunction
+---Whether to add snippet tabstops on each parameter name in the generated anonymous function snippet, allowing quick navigation and editing
+---
+---```lua
+---default = true
+---```
+---@field addTabstopForParameters? boolean
+---Whether to include type annotations in the generated anonymous function snippet
+---
+---```lua
+---default = true
+---```
+---@field addTypeAnnotations? boolean
+---Whether to show the auto-generated anonymous function completion item when autocompleting callback arguments
+---
+---```lua
+---default = true
+---```
+---@field enabled? boolean
+
---@class _.lspconfig.settings.luau_lsp.LuauLsp.Completion.Imports.StringRequires
---Whether to use string requires when auto-importing requires. Only checked if `#luau-lsp.platform.type#` is `roblox`
---@field enabled? boolean
@@ -93,6 +113,8 @@
---default = true
---```
---@field suggestServices? boolean
+---Whether to use `const` instead of `local` for auto-imported requires and services
+---@field useConst? boolean
---@class _.lspconfig.settings.luau_lsp.LuauLsp.Completion
---Add parentheses after completing a function call
@@ -107,6 +129,7 @@
---default = true
---```
---@field addTabstopAfterParentheses? boolean
+---@field anonymousAutofilledFunction? _.lspconfig.settings.luau_lsp.LuauLsp.Completion.AnonymousAutofilledFunction
---Automatically insert an `end` when opening a block
---@field autocompleteEnd? boolean
---Enables the fragment autocomplete system for performance improvements