Files
nvim/lua/lsp/lua_ls.lua
T
2024-01-08 11:18:13 +01:00

49 lines
1.4 KiB
Lua

-- spec: https://luals.github.io/wiki/settings/
return {
enabled = true,
lspconfig = {
filetypes = {
"lua",
},
cmd = { "lua-language-server", },
single_file_support = true,
settings = {
Lua = {
completion = {
showWord = "Disable",
},
diagnostics = {
disable = { "missing-fields", },
},
runtime = {
version = "LuaJIT",
path = {
"lua/?.lua",
"lua/?/init.lua",
"?/lua/?.lua",
"?/lua/?/init.lua",
},
},
workspace = {
library = {
vim.env.VIMRUNTIME,
vim.fn.stdpath("data") .. "/lazy",
},
checkThirdParty = false,
},
hint = {
enable = false,
arrayIndex = "Disable",
await = true,
paramName = "All",
paramType = true,
semicolon = "Disable",
setType = true,
},
telemetry = { enable = false, },
},
},
},
}