plugins.lsp.servers.lua-ls.settings.workspace.checkThirdParty

Whether third party libraries can be automatically detected and applied. Third party libraries can set up the environment to be as close as possible to your target runtime environment. See meta/3rd to view what third party libraries are currently supported.

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.lsp.servers.lua-ls.settings.workspace.ignoreDir

An array of paths that will be ignored and not included in the workspace diagnosis. Uses .gitignore grammar. Can be a file or directory.

Plugin default:

[
  ".vscode"
]

Type: null or (list of (string or raw lua code))

Default: null

Declared by:

plugins.lsp.servers.lua-ls.settings.workspace.ignoreSubmodules

Whether git submodules should be ignored and not included in the workspace diagnosis.

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.lsp.servers.lua-ls.settings.workspace.library

An array of abosolute or workspace-relative paths that will be added to the workspace diagnosis - meaning you will get completion and context from these library files. Can be a file or directory. Files included here will have some features disabled such as renaming fields to prevent accidentally renaming your library files. Read more on the Libraries page.

Plugin default: [ ]

Type: null or (list of (string or raw lua code))

Default: null

Declared by:

plugins.lsp.servers.lua-ls.settings.workspace.maxPreload

The maximum amount of files that can be diagnosed. More files will require more RAM.

Plugin default: 5000

Type: null or unsigned integer, meaning >=0, or raw lua code

Default: null

Declared by:

plugins.lsp.servers.lua-ls.settings.workspace.preloadFileSize

Files larger than this value (in KB) will be skipped when loading for workspace diagnosis.

Plugin default: 500

Type: null or unsigned integer, meaning >=0, or raw lua code

Default: null

Declared by:

plugins.lsp.servers.lua-ls.settings.workspace.supportScheme

Lua file schemes to enable the language server for.

Plugin default:

[
  "file"
  "untitled"
  "git"
]

Type: null or (list of (string or raw lua code))

Default: null

Declared by:

plugins.lsp.servers.lua-ls.settings.workspace.useGitIgnore

Whether files that are in .gitignore should be ignored by the language server when performing workspace diagnosis.

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.lsp.servers.lua-ls.settings.workspace.userThirdParty

An array of paths to custom third party libraries. This path should point to a directory where all of your custom libraries are, not just to one of the libraries. If the below is your file structure, this setting should be "myLuaLibraries" - of course this should be an absolute path though.

📦 myLuaLibraries/
    ├── 📂 myCustomLibrary/
    │   ├── 📂 library/
    │   └── 📜 config.lua
    └── 📂 anotherCustomLibrary/
        ├── 📂 library/
        └── 📜 config.lua

Plugin default: [ ]

Type: null or (list of (string or raw lua code))

Default: null

Declared by: