pojokcodeid.nvim-lazy/lua/user/lsp/settings/lua_ls.lua

39 lines
768 B
Lua
Raw Normal View History

2024-04-18 07:17:54 +07:00
-- https://luals.github.io/wiki/settings/
2024-02-19 20:29:46 +07:00
return {
settings = {
Lua = {
2024-04-18 07:17:54 +07:00
format = {
enable = false,
},
2024-02-19 20:29:46 +07:00
diagnostics = {
2024-04-18 07:17:54 +07:00
globals = { "vim", "spec" },
},
runtime = {
version = "LuaJIT",
special = {
spec = "require",
},
2024-02-19 20:29:46 +07:00
},
workspace = {
2024-04-18 07:17:54 +07:00
checkThirdParty = false,
2024-02-19 20:29:46 +07:00
library = {
[vim.fn.expand("$VIMRUNTIME/lua")] = true,
[vim.fn.stdpath("config") .. "/lua"] = true,
},
2024-04-18 07:17:54 +07:00
},
hint = {
enable = false,
arrayIndex = "Disable", -- "Enable" | "Auto" | "Disable"
await = true,
paramName = "Disable", -- "All" | "Literal" | "Disable"
paramType = true,
semicolon = "All", -- "All" | "SameLine" | "Disable"
setType = false,
},
telemetry = {
enable = false,
2024-02-19 20:29:46 +07:00
},
},
},
}