aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/types/lsp/ada_ls.lua5
-rw-r--r--lua/lspconfig/types/lsp/jdtls.lua9
-rw-r--r--lua/lspconfig/types/lsp/luau_lsp.lua22
-rw-r--r--lua/lspconfig/types/lsp/omnisharp.lua9
-rw-r--r--lua/lspconfig/types/lsp/rust_analyzer.lua7
5 files changed, 52 insertions, 0 deletions
diff --git a/lua/lspconfig/types/lsp/ada_ls.lua b/lua/lspconfig/types/lsp/ada_ls.lua
index 4bb477c2..75aeda2a 100644
--- a/lua/lspconfig/types/lsp/ada_ls.lua
+++ b/lua/lspconfig/types/lsp/ada_ls.lua
@@ -75,6 +75,11 @@
---default = 10
---```
---@field logThreshold? integer
+---Configurable thresholds for metrics provided by `gnatmetric`. Each key is a metric name (e.g., `cyclomatic_complexity`, `code_lines`), and the value is an object with optional 'warn' and 'error' numeric thresholds.
+---Metric names can be retrieved from the XML metric files generated by `gnatmetric`, which by default are located under the project's object directory (`.metrics.xml` files).
+---
+---If not set, no thresholds will be applied.
+---@field metricThresholds? table
---Defines the number of parameters/components beyond which named notation is used for completion snippets.
---
---If not set in VS Code, this setting takes its value from the [`.als.json`](https://github.com/AdaCore/ada_language_server/blob/master/doc/settings.md) file at the root of the workspace, if that file exists. Otherwise it defaults to `3`.
diff --git a/lua/lspconfig/types/lsp/jdtls.lua b/lua/lspconfig/types/lsp/jdtls.lua
index 6f5cdae7..0a7ac689 100644
--- a/lua/lspconfig/types/lsp/jdtls.lua
+++ b/lua/lspconfig/types/lsp/jdtls.lua
@@ -562,6 +562,14 @@
---```
---@field enabled? boolean
+---@class _.lspconfig.settings.jdtls.Java.Jdt.Ls.ScalaSupport
+---[Experimental] Specify whether to enable `scala` plugin in Gradle projects. Defaults to `true`.
+---
+---```lua
+---default = true
+---```
+---@field enabled? boolean
+
---@class _.lspconfig.settings.jdtls.Java.Jdt.Ls
---@field androidSupport? _.lspconfig.settings.jdtls.Java.Jdt.Ls.AndroidSupport
---@field appcds? _.lspconfig.settings.jdtls.Java.Jdt.Ls.Appcds
@@ -572,6 +580,7 @@
---@field kotlinSupport? _.lspconfig.settings.jdtls.Java.Jdt.Ls.KotlinSupport
---@field lombokSupport? _.lspconfig.settings.jdtls.Java.Jdt.Ls.LombokSupport
---@field protobufSupport? _.lspconfig.settings.jdtls.Java.Jdt.Ls.ProtobufSupport
+---@field scalaSupport? _.lspconfig.settings.jdtls.Java.Jdt.Ls.ScalaSupport
---Specifies extra VM arguments used to launch the Java Language Server. Eg. use `-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx2G -Xms100m -Xlog:disable` to optimize memory usage with the parallel garbage collector
---
---```lua
diff --git a/lua/lspconfig/types/lsp/luau_lsp.lua b/lua/lspconfig/types/lsp/luau_lsp.lua
index 8deca1a1..526b946e 100644
--- a/lua/lspconfig/types/lsp/luau_lsp.lua
+++ b/lua/lspconfig/types/lsp/luau_lsp.lua
@@ -294,6 +294,27 @@
---```
---@field port? number
+---@class _.lspconfig.settings.luau_lsp.LuauLsp.Plugins.FileSystem
+---Allow plugins to read files within the workspace. Only files within the workspace can be accessed for security.
+---@field enabled? boolean
+
+---@class _.lspconfig.settings.luau_lsp.LuauLsp.Plugins
+---Enable source code transformation plugins. Plugins are Luau scripts that can transform source code before type checking.
+---@field enabled? boolean
+---@field fileSystem? _.lspconfig.settings.luau_lsp.LuauLsp.Plugins.FileSystem
+---Paths to Luau plugin scripts. Plugins are executed in order and can transform source code before type checking.
+---
+---```lua
+---default = {}
+---```
+---@field paths? string[]
+---Timeout in milliseconds for plugin execution. If a plugin takes longer than this, it will be terminated.
+---
+---```lua
+---default = 5000
+---```
+---@field timeoutMs? number
+
---@class _.lspconfig.settings.luau_lsp.LuauLsp.Require
---A mapping of custom require string prefixes to directory paths. The aliases should include trailing slashes
---
@@ -431,6 +452,7 @@
---@field inlayHints? _.lspconfig.settings.luau_lsp.LuauLsp.InlayHints
---@field platform? _.lspconfig.settings.luau_lsp.LuauLsp.Platform
---@field plugin? _.lspconfig.settings.luau_lsp.LuauLsp.Plugin
+---@field plugins? _.lspconfig.settings.luau_lsp.LuauLsp.Plugins
---@field require? _.lspconfig.settings.luau_lsp.LuauLsp.Require
---@field server? _.lspconfig.settings.luau_lsp.LuauLsp.Server
---@field signatureHelp? _.lspconfig.settings.luau_lsp.LuauLsp.SignatureHelp
diff --git a/lua/lspconfig/types/lsp/omnisharp.lua b/lua/lspconfig/types/lsp/omnisharp.lua
index 77a8e141..a8e10e3d 100644
--- a/lua/lspconfig/types/lsp/omnisharp.lua
+++ b/lua/lspconfig/types/lsp/omnisharp.lua
@@ -315,6 +315,14 @@
---```
---@field reportInformationAsHint? boolean
+---@class _.lspconfig.settings.omnisharp.Dotnet.FileBasedApps
+---%configuration.dotnet.fileBasedApps.enableAutomaticDiscovery%
+---
+---```lua
+---default = true
+---```
+---@field enableAutomaticDiscovery? boolean
+
---@class _.lspconfig.settings.omnisharp.Dotnet.Formatting
---%configuration.dotnet.formatting.organizeImportsOnFormat%
---@field organizeImportsOnFormat? boolean
@@ -707,6 +715,7 @@
---default = true
---```
---@field enableXamlTools? boolean
+---@field fileBasedApps? _.lspconfig.settings.omnisharp.Dotnet.FileBasedApps
---@field formatting? _.lspconfig.settings.omnisharp.Dotnet.Formatting
---@field highlighting? _.lspconfig.settings.omnisharp.Dotnet.Highlighting
---@field inlayHints? _.lspconfig.settings.omnisharp.Dotnet.InlayHints
diff --git a/lua/lspconfig/types/lsp/rust_analyzer.lua b/lua/lspconfig/types/lsp/rust_analyzer.lua
index a1c69950..850f7477 100644
--- a/lua/lspconfig/types/lsp/rust_analyzer.lua
+++ b/lua/lspconfig/types/lsp/rust_analyzer.lua
@@ -143,6 +143,13 @@
---default = {}
---```
---@field features? "all"|string[]
+---Extra arguments passed only to `cargo metadata`, not to other cargo invocations.
+---Useful for flags like `--config` that `cargo metadata` supports.
+---
+---```lua
+---default = {}
+---```
+---@field metadataExtraArgs? string[]
---Whether to pass `--no-default-features` to cargo.
---@field noDefaultFeatures? boolean
---Whether to skip fetching dependencies. If set to "true", the analysis is performed