mirror of https://github.com/folke/neoconf.nvim
fix: rename sumneko_lua -> lua_ls (#12)
This commit is contained in:
parent
a514065e36
commit
156a3eed89
|
|
@ -10,13 +10,13 @@
|
||||||
},
|
},
|
||||||
"neoconf": {
|
"neoconf": {
|
||||||
"plugins": {
|
"plugins": {
|
||||||
"sumneko_lua": {
|
"lua_ls": {
|
||||||
"enabled": true
|
"enabled": true
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lspconfig": {
|
"lspconfig": {
|
||||||
"sumneko_lua": {
|
"lua_ls": {
|
||||||
"Lua.completion.callSnippet": "Replace",
|
"Lua.completion.callSnippet": "Replace",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
10
README.md
10
README.md
|
|
@ -45,7 +45,7 @@ require("neoconf").setup({
|
||||||
})
|
})
|
||||||
|
|
||||||
-- setup your lsp servers as usual
|
-- setup your lsp servers as usual
|
||||||
require("lspconfig").sumneko_lua.setup(...)
|
require("lspconfig").lua_ls.setup(...)
|
||||||
```
|
```
|
||||||
|
|
||||||
## ⚙️ Configuration
|
## ⚙️ Configuration
|
||||||
|
|
@ -84,9 +84,9 @@ require("lspconfig").sumneko_lua.setup(...)
|
||||||
-- only show completion in json settings for configured lsp servers
|
-- only show completion in json settings for configured lsp servers
|
||||||
configured_servers_only = true,
|
configured_servers_only = true,
|
||||||
},
|
},
|
||||||
-- configures sumneko_lua to get completion of lspconfig server settings
|
-- configures lua_ls to get completion of lspconfig server settings
|
||||||
sumneko_lua = {
|
lua_ls = {
|
||||||
-- by default, sumneko_lua annotations are only enabled in your neovim config directory
|
-- by default, lua_ls annotations are only enabled in your neovim config directory
|
||||||
enabled_for_neovim_config = true,
|
enabled_for_neovim_config = true,
|
||||||
-- explicitely enable adding annotations. Mostly relevant to put in your local .nvim.settings.json file
|
-- explicitely enable adding annotations. Mostly relevant to put in your local .nvim.settings.json file
|
||||||
enabled = false,
|
enabled = false,
|
||||||
|
|
@ -269,7 +269,7 @@ local my_settings = Neoconf.get("neodev", defaults)
|
||||||
- [x] [sourcekit](https://github.com/swift-server/vscode-swift/tree/main/package.json)
|
- [x] [sourcekit](https://github.com/swift-server/vscode-swift/tree/main/package.json)
|
||||||
- [x] [spectral](https://github.com/stoplightio/vscode-spectral/tree/master/package.json)
|
- [x] [spectral](https://github.com/stoplightio/vscode-spectral/tree/master/package.json)
|
||||||
- [x] [stylelint_lsp](https://github.com/bmatcuk/coc-stylelintplus/tree/master/package.json)
|
- [x] [stylelint_lsp](https://github.com/bmatcuk/coc-stylelintplus/tree/master/package.json)
|
||||||
- [x] [sumneko_lua](https://github.com/sumneko/vscode-lua/tree/master/package.json)
|
- [x] [lua_ls](https://github.com/LuaLS/vscode-lua/tree/master/package.json)
|
||||||
- [x] [svelte](https://github.com/sveltejs/language-tools/tree/master/packages/svelte-vscode/package.json)
|
- [x] [svelte](https://github.com/sveltejs/language-tools/tree/master/packages/svelte-vscode/package.json)
|
||||||
- [x] [svlangserver](https://github.com/eirikpre/VSCode-SystemVerilog/tree/master/package.json)
|
- [x] [svlangserver](https://github.com/eirikpre/VSCode-SystemVerilog/tree/master/package.json)
|
||||||
- [x] [tailwindcss](https://github.com/tailwindlabs/tailwindcss-intellisense/tree/master/packages/vscode-tailwindcss/package.json)
|
- [x] [tailwindcss](https://github.com/tailwindlabs/tailwindcss-intellisense/tree/master/packages/vscode-tailwindcss/package.json)
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ It’s important that you set up `neoconf.nvim` **BEFORE** `nvim-lspconfig`.
|
||||||
})
|
})
|
||||||
|
|
||||||
-- setup your lsp servers as usual
|
-- setup your lsp servers as usual
|
||||||
require("lspconfig").sumneko_lua.setup(...)
|
require("lspconfig").lua_ls.setup(...)
|
||||||
<
|
<
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -111,9 +111,9 @@ CONFIGURATION *neoconf.nvim-configuration*
|
||||||
-- only show completion in json settings for configured lsp servers
|
-- only show completion in json settings for configured lsp servers
|
||||||
configured_servers_only = true,
|
configured_servers_only = true,
|
||||||
},
|
},
|
||||||
-- configures sumneko_lua to get completion of lspconfig server settings
|
-- configures lua_ls to get completion of lspconfig server settings
|
||||||
sumneko_lua = {
|
lua_ls = {
|
||||||
-- by default, sumneko_lua annotations are only enabled in your neovim config directory
|
-- by default, lua_ls annotations are only enabled in your neovim config directory
|
||||||
enabled_for_neovim_config = true,
|
enabled_for_neovim_config = true,
|
||||||
-- explicitely enable adding annotations. Mostly relevant to put in your local .nvim.settings.json file
|
-- explicitely enable adding annotations. Mostly relevant to put in your local .nvim.settings.json file
|
||||||
enabled = false,
|
enabled = false,
|
||||||
|
|
@ -308,7 +308,7 @@ SUPPORTED LANGUAGE SERVERS *neoconf.nvim-supported-language-servers*
|
||||||
- sourcekit <https://github.com/swift-server/vscode-swift/tree/main/package.json>
|
- sourcekit <https://github.com/swift-server/vscode-swift/tree/main/package.json>
|
||||||
- spectral <https://github.com/stoplightio/vscode-spectral/tree/master/package.json>
|
- spectral <https://github.com/stoplightio/vscode-spectral/tree/master/package.json>
|
||||||
- stylelint_lsp <https://github.com/bmatcuk/coc-stylelintplus/tree/master/package.json>
|
- stylelint_lsp <https://github.com/bmatcuk/coc-stylelintplus/tree/master/package.json>
|
||||||
- sumneko_lua <https://github.com/sumneko/vscode-lua/tree/master/package.json>
|
- lua_ls <https://github.com/sumneko/vscode-lua/tree/master/package.json>
|
||||||
- svelte <https://github.com/sveltejs/language-tools/tree/master/packages/svelte-vscode/package.json>
|
- svelte <https://github.com/sveltejs/language-tools/tree/master/packages/svelte-vscode/package.json>
|
||||||
- svlangserver <https://github.com/eirikpre/VSCode-SystemVerilog/tree/master/package.json>
|
- svlangserver <https://github.com/eirikpre/VSCode-SystemVerilog/tree/master/package.json>
|
||||||
- tailwindcss <https://github.com/tailwindlabs/tailwindcss-intellisense/tree/master/packages/vscode-tailwindcss/package.json>
|
- tailwindcss <https://github.com/tailwindlabs/tailwindcss-intellisense/tree/master/packages/vscode-tailwindcss/package.json>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ local M = {}
|
||||||
|
|
||||||
--- @type table<string, LspSchema>
|
--- @type table<string, LspSchema>
|
||||||
M.overrides = {
|
M.overrides = {
|
||||||
sumneko_lua = {
|
lua_ls = {
|
||||||
translate = true,
|
translate = true,
|
||||||
},
|
},
|
||||||
jsonls = {
|
jsonls = {
|
||||||
|
|
|
||||||
|
|
@ -31,9 +31,9 @@ M.defaults = {
|
||||||
-- only show completion in json settings for configured lsp servers
|
-- only show completion in json settings for configured lsp servers
|
||||||
configured_servers_only = true,
|
configured_servers_only = true,
|
||||||
},
|
},
|
||||||
-- configures sumneko_lua to get completion of lspconfig server settings
|
-- configures lua_ls to get completion of lspconfig server settings
|
||||||
sumneko_lua = {
|
lua_ls = {
|
||||||
-- by default, sumneko_lua annotations are only enabled in your neovim config directory
|
-- by default, lua_ls annotations are only enabled in your neovim config directory
|
||||||
enabled_for_neovim_config = true,
|
enabled_for_neovim_config = true,
|
||||||
-- explicitely enable adding annotations. Mostly relevant to put in your local .nvim.settings.json file
|
-- explicitely enable adding annotations. Mostly relevant to put in your local .nvim.settings.json file
|
||||||
enabled = false,
|
enabled = false,
|
||||||
|
|
|
||||||
|
|
@ -48,10 +48,10 @@ function M.check()
|
||||||
else
|
else
|
||||||
warn("**lspconfig jsonls** is not installed? You won't get any auto completion in your settings files")
|
warn("**lspconfig jsonls** is not installed? You won't get any auto completion in your settings files")
|
||||||
end
|
end
|
||||||
if vim.tbl_contains(available, "sumneko_lua") then
|
if vim.tbl_contains(available, "lua_ls") then
|
||||||
ok("**lspconfig sumneko_lua** is installed")
|
ok("**lspconfig lua_ls** is installed")
|
||||||
else
|
else
|
||||||
warn("**lspconfig sumneko_lua** is not installed? You won't get any auto completion in your lua settings files")
|
warn("**lspconfig lua_ls** is not installed? You won't get any auto completion in your lua settings files")
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
error("**lspconfig** not installed?")
|
error("**lspconfig** not installed?")
|
||||||
|
|
|
||||||
|
|
@ -11,11 +11,11 @@ function M.setup()
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.on_new_config(config, root_dir)
|
function M.on_new_config(config, root_dir)
|
||||||
if config.name == "sumneko_lua" then
|
if config.name == "lua_ls" then
|
||||||
local settings = Config.get({ file = root_dir })
|
local settings = Config.get({ file = root_dir })
|
||||||
|
|
||||||
local enabled = settings.plugins.sumneko_lua.enabled
|
local enabled = settings.plugins.lua_ls.enabled
|
||||||
if not enabled and settings.plugins.sumneko_lua.enabled_for_neovim_config then
|
if not enabled and settings.plugins.lua_ls.enabled_for_neovim_config then
|
||||||
enabled = Util.is_nvim_config(root_dir)
|
enabled = Util.is_nvim_config(root_dir)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@
|
||||||
"sourcekit": "https://raw.githubusercontent.com/swift-server/vscode-swift/main/package.json",
|
"sourcekit": "https://raw.githubusercontent.com/swift-server/vscode-swift/main/package.json",
|
||||||
"spectral": "https://raw.githubusercontent.com/stoplightio/vscode-spectral/master/package.json",
|
"spectral": "https://raw.githubusercontent.com/stoplightio/vscode-spectral/master/package.json",
|
||||||
"stylelint_lsp": "https://raw.githubusercontent.com/bmatcuk/coc-stylelintplus/master/package.json",
|
"stylelint_lsp": "https://raw.githubusercontent.com/bmatcuk/coc-stylelintplus/master/package.json",
|
||||||
"sumneko_lua": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/package.json",
|
"lua_ls": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/package.json",
|
||||||
"svelte": "https://raw.githubusercontent.com/sveltejs/language-tools/master/packages/svelte-vscode/package.json",
|
"svelte": "https://raw.githubusercontent.com/sveltejs/language-tools/master/packages/svelte-vscode/package.json",
|
||||||
"svlangserver": "https://raw.githubusercontent.com/eirikpre/VSCode-SystemVerilog/master/package.json",
|
"svlangserver": "https://raw.githubusercontent.com/eirikpre/VSCode-SystemVerilog/master/package.json",
|
||||||
"tailwindcss": "https://raw.githubusercontent.com/tailwindlabs/tailwindcss-intellisense/master/packages/vscode-tailwindcss/package.json",
|
"tailwindcss": "https://raw.githubusercontent.com/tailwindlabs/tailwindcss-intellisense/master/packages/vscode-tailwindcss/package.json",
|
||||||
|
|
@ -60,4 +60,4 @@
|
||||||
"yamlls": "https://raw.githubusercontent.com/redhat-developer/vscode-yaml/master/package.json",
|
"yamlls": "https://raw.githubusercontent.com/redhat-developer/vscode-yaml/master/package.json",
|
||||||
"zeta_note": "https://raw.githubusercontent.com/artempyanykh/zeta-note-vscode/main/package.json",
|
"zeta_note": "https://raw.githubusercontent.com/artempyanykh/zeta-note-vscode/main/package.json",
|
||||||
"zls": "https://raw.githubusercontent.com/zigtools/zls-vscode/master/package.json"
|
"zls": "https://raw.githubusercontent.com/zigtools/zls-vscode/master/package.json"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9553,11 +9553,11 @@
|
||||||
---@class lspconfig.settings.stylelint_lsp
|
---@class lspconfig.settings.stylelint_lsp
|
||||||
---@field stylelintplus _.lspconfig.settings.stylelint_lsp.Stylelintplus
|
---@field stylelintplus _.lspconfig.settings.stylelint_lsp.Stylelintplus
|
||||||
|
|
||||||
---@class _.lspconfig.settings.sumneko_lua.CodeLens
|
---@class _.lspconfig.settings.lua_ls.CodeLens
|
||||||
-- Enable code lens.
|
-- Enable code lens.
|
||||||
---@field enable boolean
|
---@field enable boolean
|
||||||
|
|
||||||
---@class _.lspconfig.settings.sumneko_lua.Completion
|
---@class _.lspconfig.settings.lua_ls.Completion
|
||||||
-- When the input looks like a file name, automatically `require` this file.
|
-- When the input looks like a file name, automatically `require` this file.
|
||||||
--
|
--
|
||||||
-- ```lua
|
-- ```lua
|
||||||
|
|
@ -9628,7 +9628,7 @@
|
||||||
-- `Fallback` means that diagnostics in this group are controlled by `diagnostics.neededFileStatus` separately.
|
-- `Fallback` means that diagnostics in this group are controlled by `diagnostics.neededFileStatus` separately.
|
||||||
-- Other settings will override individual settings without end of `!`.
|
-- Other settings will override individual settings without end of `!`.
|
||||||
--
|
--
|
||||||
---@class _.lspconfig.settings.sumneko_lua.GroupFileStatus
|
---@class _.lspconfig.settings.lua_ls.GroupFileStatus
|
||||||
-- * ambiguity-1
|
-- * ambiguity-1
|
||||||
-- * count-down-loop
|
-- * count-down-loop
|
||||||
-- * different-requires
|
-- * different-requires
|
||||||
|
|
@ -9749,7 +9749,7 @@
|
||||||
-- `Fallback` means that diagnostics in this group are controlled by `diagnostics.severity` separately.
|
-- `Fallback` means that diagnostics in this group are controlled by `diagnostics.severity` separately.
|
||||||
-- Other settings will override individual settings without end of `!`.
|
-- Other settings will override individual settings without end of `!`.
|
||||||
--
|
--
|
||||||
---@class _.lspconfig.settings.sumneko_lua.GroupSeverity
|
---@class _.lspconfig.settings.lua_ls.GroupSeverity
|
||||||
-- * ambiguity-1
|
-- * ambiguity-1
|
||||||
-- * count-down-loop
|
-- * count-down-loop
|
||||||
-- * different-requires
|
-- * different-requires
|
||||||
|
|
@ -9872,7 +9872,7 @@
|
||||||
--
|
--
|
||||||
-- End with `!` means override the group setting `diagnostics.groupFileStatus`.
|
-- End with `!` means override the group setting `diagnostics.groupFileStatus`.
|
||||||
--
|
--
|
||||||
---@class _.lspconfig.settings.sumneko_lua.NeededFileStatus
|
---@class _.lspconfig.settings.lua_ls.NeededFileStatus
|
||||||
-- Enable ambiguous operator precedence diagnostics. For example, the `num or 0 + 1` expression will be suggested `(num or 0) + 1` instead.
|
-- Enable ambiguous operator precedence diagnostics. For example, the `num or 0 + 1` expression will be suggested `(num or 0) + 1` instead.
|
||||||
--
|
--
|
||||||
-- ```lua
|
-- ```lua
|
||||||
|
|
@ -10208,7 +10208,7 @@
|
||||||
--
|
--
|
||||||
-- End with `!` means override the group setting `diagnostics.groupSeverity`.
|
-- End with `!` means override the group setting `diagnostics.groupSeverity`.
|
||||||
--
|
--
|
||||||
---@class _.lspconfig.settings.sumneko_lua.Severity
|
---@class _.lspconfig.settings.lua_ls.Severity
|
||||||
-- Enable ambiguous operator precedence diagnostics. For example, the `num or 0 + 1` expression will be suggested `(num or 0) + 1` instead.
|
-- Enable ambiguous operator precedence diagnostics. For example, the `num or 0 + 1` expression will be suggested `(num or 0) + 1` instead.
|
||||||
--
|
--
|
||||||
-- ```lua
|
-- ```lua
|
||||||
|
|
@ -10540,7 +10540,7 @@
|
||||||
-- ```
|
-- ```
|
||||||
---@field unused-vararg "Error" | "Warning" | "Information" | "Hint" | "Error!" | "Warning!" | "Information!" | "Hint!"
|
---@field unused-vararg "Error" | "Warning" | "Information" | "Hint" | "Error!" | "Warning!" | "Information!" | "Hint!"
|
||||||
|
|
||||||
---@class _.lspconfig.settings.sumneko_lua.Diagnostics
|
---@class _.lspconfig.settings.lua_ls.Diagnostics
|
||||||
-- Disabled diagnostic (Use code in hover brackets).
|
-- Disabled diagnostic (Use code in hover brackets).
|
||||||
--
|
--
|
||||||
-- ```lua
|
-- ```lua
|
||||||
|
|
@ -10574,12 +10574,12 @@
|
||||||
-- `Fallback` means that diagnostics in this group are controlled by `diagnostics.neededFileStatus` separately.
|
-- `Fallback` means that diagnostics in this group are controlled by `diagnostics.neededFileStatus` separately.
|
||||||
-- Other settings will override individual settings without end of `!`.
|
-- Other settings will override individual settings without end of `!`.
|
||||||
--
|
--
|
||||||
---@field groupFileStatus _.lspconfig.settings.sumneko_lua.GroupFileStatus
|
---@field groupFileStatus _.lspconfig.settings.lua_ls.GroupFileStatus
|
||||||
-- Modify the diagnostic severity in a group.
|
-- Modify the diagnostic severity in a group.
|
||||||
-- `Fallback` means that diagnostics in this group are controlled by `diagnostics.severity` separately.
|
-- `Fallback` means that diagnostics in this group are controlled by `diagnostics.severity` separately.
|
||||||
-- Other settings will override individual settings without end of `!`.
|
-- Other settings will override individual settings without end of `!`.
|
||||||
--
|
--
|
||||||
---@field groupSeverity _.lspconfig.settings.sumneko_lua.GroupSeverity
|
---@field groupSeverity _.lspconfig.settings.lua_ls.GroupSeverity
|
||||||
-- How to diagnose ignored files.
|
-- How to diagnose ignored files.
|
||||||
--
|
--
|
||||||
-- ```lua
|
-- ```lua
|
||||||
|
|
@ -10598,12 +10598,12 @@
|
||||||
--
|
--
|
||||||
-- End with `!` means override the group setting `diagnostics.groupFileStatus`.
|
-- End with `!` means override the group setting `diagnostics.groupFileStatus`.
|
||||||
--
|
--
|
||||||
---@field neededFileStatus _.lspconfig.settings.sumneko_lua.NeededFileStatus
|
---@field neededFileStatus _.lspconfig.settings.lua_ls.NeededFileStatus
|
||||||
-- Modify the diagnostic severity.
|
-- Modify the diagnostic severity.
|
||||||
--
|
--
|
||||||
-- End with `!` means override the group setting `diagnostics.groupSeverity`.
|
-- End with `!` means override the group setting `diagnostics.groupSeverity`.
|
||||||
--
|
--
|
||||||
---@field severity _.lspconfig.settings.sumneko_lua.Severity
|
---@field severity _.lspconfig.settings.lua_ls.Severity
|
||||||
-- Do not diagnose `unused-local` when the variable name matches the following pattern.
|
-- Do not diagnose `unused-local` when the variable name matches the following pattern.
|
||||||
--
|
--
|
||||||
-- ```lua
|
-- ```lua
|
||||||
|
|
@ -10629,7 +10629,7 @@
|
||||||
-- ```
|
-- ```
|
||||||
---@field workspaceRate integer
|
---@field workspaceRate integer
|
||||||
|
|
||||||
---@class _.lspconfig.settings.sumneko_lua.Doc
|
---@class _.lspconfig.settings.lua_ls.Doc
|
||||||
-- Treat specific field names as package, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are package, witch can only be accessed in the file where the definition is located.
|
-- Treat specific field names as package, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are package, witch can only be accessed in the file where the definition is located.
|
||||||
--
|
--
|
||||||
-- ```lua
|
-- ```lua
|
||||||
|
|
@ -10649,7 +10649,7 @@
|
||||||
-- ```
|
-- ```
|
||||||
---@field protectedName string[]
|
---@field protectedName string[]
|
||||||
|
|
||||||
---@class _.lspconfig.settings.sumneko_lua.Format
|
---@class _.lspconfig.settings.lua_ls.Format
|
||||||
-- The default format configuration. Has a lower priority than `.editorconfig` file in the workspace.
|
-- The default format configuration. Has a lower priority than `.editorconfig` file in the workspace.
|
||||||
-- Read [formatter docs](https://github.com/CppCXY/EmmyLuaCodeStyle/tree/master/docs) to learn usage.
|
-- Read [formatter docs](https://github.com/CppCXY/EmmyLuaCodeStyle/tree/master/docs) to learn usage.
|
||||||
--
|
--
|
||||||
|
|
@ -10665,7 +10665,7 @@
|
||||||
-- ```
|
-- ```
|
||||||
---@field enable boolean
|
---@field enable boolean
|
||||||
|
|
||||||
---@class _.lspconfig.settings.sumneko_lua.Hint
|
---@class _.lspconfig.settings.lua_ls.Hint
|
||||||
-- Show hints of array index when constructing a table.
|
-- Show hints of array index when constructing a table.
|
||||||
--
|
--
|
||||||
-- ```lua
|
-- ```lua
|
||||||
|
|
@ -10701,7 +10701,7 @@
|
||||||
-- Show hints of type at assignment operation.
|
-- Show hints of type at assignment operation.
|
||||||
---@field setType boolean
|
---@field setType boolean
|
||||||
|
|
||||||
---@class _.lspconfig.settings.sumneko_lua.Hover
|
---@class _.lspconfig.settings.lua_ls.Hover
|
||||||
-- Enable hover.
|
-- Enable hover.
|
||||||
--
|
--
|
||||||
-- ```lua
|
-- ```lua
|
||||||
|
|
@ -10746,7 +10746,7 @@
|
||||||
-- ```
|
-- ```
|
||||||
---@field viewStringMax integer
|
---@field viewStringMax integer
|
||||||
|
|
||||||
---@class _.lspconfig.settings.sumneko_lua.Misc
|
---@class _.lspconfig.settings.lua_ls.Misc
|
||||||
-- Specify the executable path in VSCode.
|
-- Specify the executable path in VSCode.
|
||||||
--
|
--
|
||||||
-- ```lua
|
-- ```lua
|
||||||
|
|
@ -10766,7 +10766,7 @@
|
||||||
-- * `enable`: always enable
|
-- * `enable`: always enable
|
||||||
-- * `disable`: always disable
|
-- * `disable`: always disable
|
||||||
--
|
--
|
||||||
---@class _.lspconfig.settings.sumneko_lua.Builtin
|
---@class _.lspconfig.settings.lua_ls.Builtin
|
||||||
--
|
--
|
||||||
--
|
--
|
||||||
-- ```lua
|
-- ```lua
|
||||||
|
|
@ -10876,14 +10876,14 @@
|
||||||
-- ```
|
-- ```
|
||||||
---@field utf8 "default" | "enable" | "disable"
|
---@field utf8 "default" | "enable" | "disable"
|
||||||
|
|
||||||
---@class _.lspconfig.settings.sumneko_lua.Runtime
|
---@class _.lspconfig.settings.lua_ls.Runtime
|
||||||
-- Adjust the enabled state of the built-in library. You can disable (or redefine) the non-existent library according to the actual runtime environment.
|
-- Adjust the enabled state of the built-in library. You can disable (or redefine) the non-existent library according to the actual runtime environment.
|
||||||
--
|
--
|
||||||
-- * `default`: Indicates that the library will be enabled or disabled according to the runtime version
|
-- * `default`: Indicates that the library will be enabled or disabled according to the runtime version
|
||||||
-- * `enable`: always enable
|
-- * `enable`: always enable
|
||||||
-- * `disable`: always disable
|
-- * `disable`: always disable
|
||||||
--
|
--
|
||||||
---@field builtin _.lspconfig.settings.sumneko_lua.Builtin
|
---@field builtin _.lspconfig.settings.lua_ls.Builtin
|
||||||
-- File encoding. The `ansi` option is only available under the `Windows` platform.
|
-- File encoding. The `ansi` option is only available under the `Windows` platform.
|
||||||
--
|
--
|
||||||
-- ```lua
|
-- ```lua
|
||||||
|
|
@ -10948,7 +10948,7 @@
|
||||||
-- ```
|
-- ```
|
||||||
---@field version "Lua 5.1" | "Lua 5.2" | "Lua 5.3" | "Lua 5.4" | "LuaJIT"
|
---@field version "Lua 5.1" | "Lua 5.2" | "Lua 5.3" | "Lua 5.4" | "LuaJIT"
|
||||||
|
|
||||||
---@class _.lspconfig.settings.sumneko_lua.Semantic
|
---@class _.lspconfig.settings.lua_ls.Semantic
|
||||||
-- Semantic coloring of type annotations.
|
-- Semantic coloring of type annotations.
|
||||||
--
|
--
|
||||||
-- ```lua
|
-- ```lua
|
||||||
|
|
@ -10970,7 +10970,7 @@
|
||||||
-- ```
|
-- ```
|
||||||
---@field variable boolean
|
---@field variable boolean
|
||||||
|
|
||||||
---@class _.lspconfig.settings.sumneko_lua.SignatureHelp
|
---@class _.lspconfig.settings.lua_ls.SignatureHelp
|
||||||
-- Enable signature help.
|
-- Enable signature help.
|
||||||
--
|
--
|
||||||
-- ```lua
|
-- ```lua
|
||||||
|
|
@ -10978,7 +10978,7 @@
|
||||||
-- ```
|
-- ```
|
||||||
---@field enable boolean
|
---@field enable boolean
|
||||||
|
|
||||||
---@class _.lspconfig.settings.sumneko_lua.Spell
|
---@class _.lspconfig.settings.lua_ls.Spell
|
||||||
-- Custom words for spell checking.
|
-- Custom words for spell checking.
|
||||||
--
|
--
|
||||||
-- ```lua
|
-- ```lua
|
||||||
|
|
@ -10986,7 +10986,7 @@
|
||||||
-- ```
|
-- ```
|
||||||
---@field dict string[]
|
---@field dict string[]
|
||||||
|
|
||||||
---@class _.lspconfig.settings.sumneko_lua.Type
|
---@class _.lspconfig.settings.lua_ls.Type
|
||||||
-- Allowed to assign the `number` type to the `integer` type.
|
-- Allowed to assign the `number` type to the `integer` type.
|
||||||
--
|
--
|
||||||
-- ```lua
|
-- ```lua
|
||||||
|
|
@ -11005,7 +11005,7 @@
|
||||||
---@field weakUnionCheck boolean
|
---@field weakUnionCheck boolean
|
||||||
|
|
||||||
-- Configures the formatting behavior while typing Lua code.
|
-- Configures the formatting behavior while typing Lua code.
|
||||||
---@class _.lspconfig.settings.sumneko_lua.Config
|
---@class _.lspconfig.settings.lua_ls.Config
|
||||||
-- Controls if `end` is automatically completed at suitable positions.
|
-- Controls if `end` is automatically completed at suitable positions.
|
||||||
--
|
--
|
||||||
-- ```lua
|
-- ```lua
|
||||||
|
|
@ -11025,11 +11025,11 @@
|
||||||
-- ```
|
-- ```
|
||||||
---@field format_line string
|
---@field format_line string
|
||||||
|
|
||||||
---@class _.lspconfig.settings.sumneko_lua.TypeFormat
|
---@class _.lspconfig.settings.lua_ls.TypeFormat
|
||||||
-- Configures the formatting behavior while typing Lua code.
|
-- Configures the formatting behavior while typing Lua code.
|
||||||
---@field config _.lspconfig.settings.sumneko_lua.Config
|
---@field config _.lspconfig.settings.lua_ls.Config
|
||||||
|
|
||||||
---@class _.lspconfig.settings.sumneko_lua.Window
|
---@class _.lspconfig.settings.lua_ls.Window
|
||||||
-- Show progress bar in status bar.
|
-- Show progress bar in status bar.
|
||||||
--
|
--
|
||||||
-- ```lua
|
-- ```lua
|
||||||
|
|
@ -11043,7 +11043,7 @@
|
||||||
-- ```
|
-- ```
|
||||||
---@field statusBar boolean
|
---@field statusBar boolean
|
||||||
|
|
||||||
---@class _.lspconfig.settings.sumneko_lua.Workspace
|
---@class _.lspconfig.settings.lua_ls.Workspace
|
||||||
-- Automatic detection and adaptation of third-party libraries, currently supported libraries are:
|
-- Automatic detection and adaptation of third-party libraries, currently supported libraries are:
|
||||||
--
|
--
|
||||||
-- * OpenResty
|
-- * OpenResty
|
||||||
|
|
@ -11101,26 +11101,26 @@
|
||||||
-- ```
|
-- ```
|
||||||
---@field userThirdParty string[]
|
---@field userThirdParty string[]
|
||||||
|
|
||||||
---@class _.lspconfig.settings.sumneko_lua.Lua
|
---@class _.lspconfig.settings.lua_ls.Lua
|
||||||
---@field codeLens _.lspconfig.settings.sumneko_lua.CodeLens
|
---@field codeLens _.lspconfig.settings.lua_ls.CodeLens
|
||||||
---@field completion _.lspconfig.settings.sumneko_lua.Completion
|
---@field completion _.lspconfig.settings.lua_ls.Completion
|
||||||
---@field diagnostics _.lspconfig.settings.sumneko_lua.Diagnostics
|
---@field diagnostics _.lspconfig.settings.lua_ls.Diagnostics
|
||||||
---@field doc _.lspconfig.settings.sumneko_lua.Doc
|
---@field doc _.lspconfig.settings.lua_ls.Doc
|
||||||
---@field format _.lspconfig.settings.sumneko_lua.Format
|
---@field format _.lspconfig.settings.lua_ls.Format
|
||||||
---@field hint _.lspconfig.settings.sumneko_lua.Hint
|
---@field hint _.lspconfig.settings.lua_ls.Hint
|
||||||
---@field hover _.lspconfig.settings.sumneko_lua.Hover
|
---@field hover _.lspconfig.settings.lua_ls.Hover
|
||||||
---@field misc _.lspconfig.settings.sumneko_lua.Misc
|
---@field misc _.lspconfig.settings.lua_ls.Misc
|
||||||
---@field runtime _.lspconfig.settings.sumneko_lua.Runtime
|
---@field runtime _.lspconfig.settings.lua_ls.Runtime
|
||||||
---@field semantic _.lspconfig.settings.sumneko_lua.Semantic
|
---@field semantic _.lspconfig.settings.lua_ls.Semantic
|
||||||
---@field signatureHelp _.lspconfig.settings.sumneko_lua.SignatureHelp
|
---@field signatureHelp _.lspconfig.settings.lua_ls.SignatureHelp
|
||||||
---@field spell _.lspconfig.settings.sumneko_lua.Spell
|
---@field spell _.lspconfig.settings.lua_ls.Spell
|
||||||
---@field type _.lspconfig.settings.sumneko_lua.Type
|
---@field type _.lspconfig.settings.lua_ls.Type
|
||||||
---@field typeFormat _.lspconfig.settings.sumneko_lua.TypeFormat
|
---@field typeFormat _.lspconfig.settings.lua_ls.TypeFormat
|
||||||
---@field window _.lspconfig.settings.sumneko_lua.Window
|
---@field window _.lspconfig.settings.lua_ls.Window
|
||||||
---@field workspace _.lspconfig.settings.sumneko_lua.Workspace
|
---@field workspace _.lspconfig.settings.lua_ls.Workspace
|
||||||
|
|
||||||
---@class lspconfig.settings.sumneko_lua
|
---@class lspconfig.settings.lua_ls
|
||||||
---@field Lua _.lspconfig.settings.sumneko_lua.Lua
|
---@field Lua _.lspconfig.settings.lua_ls.Lua
|
||||||
|
|
||||||
---@class _.lspconfig.settings.svelte.Language-server
|
---@class _.lspconfig.settings.svelte.Language-server
|
||||||
-- - You normally don't set this - Enable more verbose logging for the language server useful for debugging language server execution.
|
-- - You normally don't set this - Enable more verbose logging for the language server useful for debugging language server execution.
|
||||||
|
|
|
||||||
|
|
@ -401,11 +401,11 @@ lspconfig.stylelint_lsp = {
|
||||||
setup = function(options) end,
|
setup = function(options) end,
|
||||||
}
|
}
|
||||||
|
|
||||||
---@class lspconfig.options.sumneko_lua: _.lspconfig.options
|
---@class lspconfig.options.lua_ls: _.lspconfig.options
|
||||||
---@field settings lspconfig.settings.sumneko_lua
|
---@field settings lspconfig.settings.lua_ls
|
||||||
|
|
||||||
lspconfig.sumneko_lua = {
|
lspconfig.lua_ls = {
|
||||||
---@param options lspconfig.options.sumneko_lua
|
---@param options lspconfig.options.lua_ls
|
||||||
setup = function(options) end,
|
setup = function(options) end,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -554,7 +554,7 @@ lspconfig.zls = {
|
||||||
---@field sourcekit lspconfig.options.sourcekit
|
---@field sourcekit lspconfig.options.sourcekit
|
||||||
---@field spectral lspconfig.options.spectral
|
---@field spectral lspconfig.options.spectral
|
||||||
---@field stylelint_lsp lspconfig.options.stylelint_lsp
|
---@field stylelint_lsp lspconfig.options.stylelint_lsp
|
||||||
---@field sumneko_lua lspconfig.options.sumneko_lua
|
---@field lua_ls lspconfig.options.lua_ls
|
||||||
---@field svelte lspconfig.options.svelte
|
---@field svelte lspconfig.options.svelte
|
||||||
---@field svlangserver lspconfig.options.svlangserver
|
---@field svlangserver lspconfig.options.svlangserver
|
||||||
---@field tailwindcss lspconfig.options.tailwindcss
|
---@field tailwindcss lspconfig.options.tailwindcss
|
||||||
|
|
@ -617,7 +617,7 @@ lspconfig.zls = {
|
||||||
---@field sourcekit lspconfig.settings.sourcekit
|
---@field sourcekit lspconfig.settings.sourcekit
|
||||||
---@field spectral lspconfig.settings.spectral
|
---@field spectral lspconfig.settings.spectral
|
||||||
---@field stylelint_lsp lspconfig.settings.stylelint_lsp
|
---@field stylelint_lsp lspconfig.settings.stylelint_lsp
|
||||||
---@field sumneko_lua lspconfig.settings.sumneko_lua
|
---@field lua_ls lspconfig.settings.lua_ls
|
||||||
---@field svelte lspconfig.settings.svelte
|
---@field svelte lspconfig.settings.svelte
|
||||||
---@field svlangserver lspconfig.settings.svlangserver
|
---@field svlangserver lspconfig.settings.svlangserver
|
||||||
---@field tailwindcss lspconfig.settings.tailwindcss
|
---@field tailwindcss lspconfig.settings.tailwindcss
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue