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

42 lines
965 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 {
2024-06-29 08:56:13 +07:00
settings = {
Lua = {
format = {
enable = false,
},
diagnostics = {
globals = { "vim", "spec" },
},
runtime = {
version = "LuaJIT",
special = {
spec = "require",
},
},
-- workspace = {
-- checkThirdParty = false,
-- library = {
-- [vim.fn.expand("$VIMRUNTIME/lua")] = true,
-- [vim.fn.stdpath("config") .. "/lua"] = true,
-- },
-- },
workspace = {
checkThirdParty = false,
},
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
}